25.02.2010, 19:01
Try this:
Код:
if(buyfood[playerid] == 1) { if(strcmp(text,"1",true) == 0) { new Playermoney = GetPlayerMoney(playerid); if (Playermoney >= 1) { SetPlayerHealth(playerid, eHealth+5); buyfood[playerid] = 1; } else { SendClientMessage(playerid,RED,"You don't have enough money to buy this!"); } } return 0; }