18.12.2012, 19:16
ok i tried ( maybe its the wrongest way to try it ever but i tried ) ![Smiley](images/smilies/smile.png)
if i have 10000 and try to give 10001 i get the message saying i dont have enought money.
if i have enought money let say i have 10000 and try to send 500 the money doesnt change at all ( no decrease no increase ).
is it because tis too fast or because it really don't work ?
PS im trying this alone on local
![Smiley](images/smilies/smile.png)
if i have 10000 and try to give 10001 i get the message saying i dont have enought money.
if i have enought money let say i have 10000 and try to send 500 the money doesnt change at all ( no decrease no increase ).
is it because tis too fast or because it really don't work ?
PS im trying this alone on local
Код:
if(dialogid == 2002) { if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Player OFFLINE!"); if(strlen(inputtext) > 0) { new amount; amount = strval(inputtext); if(amount <= 0) { // If amount is 0 or lower } else { // If amount is bigger than 0 GivePlayerMoney(myId, amount); if(GetPlayerMoney(playerid) < amount) return SendClientMessage(playerid, RED, "You do not have enough money"); GivePlayerMoney(playerid, -amount); myId = -1; } } } return 0;