Quote:
Originally Posted by Mike Garber
pawn Код:
if(dialogid==2055) { if(response) { if(listitem==0) // Full armour { SetPlayerArmour(playerid,100); GivePlayerMoney(playerid,-300); } if(listitem==1) // Full Health { SetPlayerHealth(playerid,100); GivePlayerMoney(playerid,-300); } return 1; }
}
|
This is wrong, it'll take 300 dollars away even if you have $0, causing it to to go -$300. If you could tell me how to put in a "You don't have enough money for this," I'd be happy.
Thanks.