Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
If i have more than 2,000,000,000$ in hand or bank for example money goes with -.
How can i increase this limit? I know that some servers did.
Thanks!
Posts: 61
Threads: 4
Joined: Oct 2014
Reputation:
0
I think the solution is to make 1-2 more variables for money for sum and show, not to sore in a variable.
Posts: 1,208
Threads: 36
Joined: Apr 2015
Quote:
Originally Posted by buburuzu19
If i have more than 2,000,000,000$ in hand or bank for example money goes with -.
How can i increase this limit? I know that some servers did.
Thanks!
|
Currently, the only possible method:
https://sampforum.blast.hk/showthread.php?tid=598933
Posts: 1,208
Threads: 36
Joined: Apr 2015
for example, for use by the bank
PHP код:
pVar[playerid][pMoney] - your variable suffix
pVar[playerid][pMoneyLY] - your variable prefix
//adding money to the bank
UpdateLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], amount); //<-- set your amount
GivePlayerMoney(playerid,-amount);
//the payment from the bank
if(IsValueContainLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], amount)){ //<-- set your amount
UpdateLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], -amount);
GivePlayerMoney(playerid,amount);
} else {
//you do not have enough money
}
//The amount of money in bank
new mymoney[LY_STRING_LEN], buffer[128];
GetLYString(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], mymoney);
format(buffer,sizeof buffer,"You money in bank: %s",mymoney);
SendClientMessage(playerid,-1,buffer);