| Anonymous | Login |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0006802 | [New issues] Client | major | always | 2012-01-16 22:35 | 2012-01-16 22:46 | |||||||
| Reporter | K3nny15 | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | Platform | ||||||||
| Status | new | OS | ||||||||||
| Projection | none | OS Version | ||||||||||
| ETA | none | Product Build | MTA 1.2 RC 3677 | |||||||||
| Summary | 0006802: Sync Problem with setElementData | |||||||||||
| Description |
Large numbers are not one to one sent by the server to the client via setElementData. Example: Server Side: 24827589302 Client Side: 24827588608 |
|||||||||||
| Steps To Reproduce |
Source Code: Server Side: function setMoney(thePlayer,cmd,money) if money ~= nil then local ammount = tonumber(money) if(setElementData(thePlayer,"Money_TEST",ammount)) then outputChatBox("You have $ "..getElementData(thePlayer,"Money_TEST").."",thePlayer) triggerClientEvent ( thePlayer, "onSetMoney", thePlayer ) else outputChatBox("Error: Money was not set.",thePlayer) end else outputChatBox("Error: Money is nil.",thePlayer) end end addCommandHandler ( "money", setMoney ) Client Side: function Moneycheck() outputChatBox("You have $ "..getElementData(getLocalPlayer(),"Money_TEST").."") end addEvent( "onSetMoney", true ) addEventHandler( "onSetMoney", getRootElement(), Moneycheck) Command: /money 24827589302 |
|||||||||||
| Additional Information | This is with all numbers bigger than 30,000,000 | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files |
|
|||||||||||
|
|
||||||||||||
Relationships |
|||||||
|
|||||||
| There are no notes attached to this issue. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-01-16 22:35 | K3nny15 | New Issue | |
| 2012-01-16 22:35 | K3nny15 | File Added: Unbenannt-1.jpg | |
| 2012-01-16 22:46 | ccw | Relationship added | related to 0005854 |
| Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group |