09.04.2016, 21:54
I have this command, /set money which sets someones money to a value.
This is the command.
How ever, if I want to give that user 3.000.000.000, the amount goes negative. I know that there is a way how to fix this, but I have no idea how..
This is the command.
Код:
if(strcmp(item, "money", true) == 0) { if(EsteManager(playerid)) { format(szMessage, sizeof(szMessage), "You have set %s (ID: %d)'s money to %d.", szPlayerName, userID, amount); SendClientMessage(playerid, COLOR_WHITE, szMessage); playerVariables[userID][pMoney] = amount; } }