Quote:
Originally Posted by ViruZZzZ_ChiLLL
pawn Код:
if(listitem == 3) { if(PlayerInfo[playerid][pCash] < 251) return SendClientMessage(playerid,COLOR_GREY," Not Enough Cash!"); if (Health > 81) return SendClientMessage(playerid, COLOR_GREY, " You can't buy anymore You'll get fat!!"); new Float:Health; GetPlayerHealth(playerid,Health); SetPlayerHealth(playerid,Health+20); PlayerInfo[playerid][pCash] -= 250; GivePlayerCash(playerid,-250); }
|
lawl that will work?
i thought getplayerhealth had to be before if(health)
EDIT: Thanks for fast reply
BUT, I was right =/ error 017: undefined symbol "Health"