28.02.2012, 18:24
(
Последний раз редактировалось Konstantinos; 17.11.2012 в 17:18.
)
Hi. I made a bank system this week and all the parts work as I want. Although, today I notice a problem on Deposit.
It gets player's money but if someone has more than $999,999,999 it saves that money and the rest not.
Because I know about the variables that the max value can store is 2,147,483,647 and I just want to prevent this.
So, I made it just reading from the Database and do the mathematical operations then store it on a string.
The only problem is that it gets the money (GetPlayerMoney( playerid )) + (inputtext) to deposit the money and save them.
Is there any way to get player's money without using GetPlayerMoney( playerid ) function and can get more than 1 Billion?
Regards,
It gets player's money but if someone has more than $999,999,999 it saves that money and the rest not.
Because I know about the variables that the max value can store is 2,147,483,647 and I just want to prevent this.
So, I made it just reading from the Database and do the mathematical operations then store it on a string.
The only problem is that it gets the money (GetPlayerMoney( playerid )) + (inputtext) to deposit the money and save them.
Is there any way to get player's money without using GetPlayerMoney( playerid ) function and can get more than 1 Billion?
Regards,