19.01.2015, 19:13
Hello, i got little error. what's the problem?
ATTENTION: DO NOT Give me a NEW command that YOU made, ONLY fix the error.
invalid expression, assumed zero
ATTENTION: DO NOT Give me a NEW command that YOU made, ONLY fix the error.
PHP код:
CMD:healme(playerid, params[])
{
new Float:health;
if(GetPlayerMoney(playerid) < 900) return SendClientMessage(playerid, -1, "{FF0000}You don't have enough cash to heal yourself.");
SendClientMessage(playerid, -1, "{00CC00}You have healed your self.");
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, 100);
else // that line<<<<<<<<<<<<<
{
SetTimer("ICanHeal", 480000, true);
SendClientMessage(playerid, -1, "{FF0000}You can't heal yourself now.");
}
if(health == 100)
{
return SendClientMessage(playerid, -1, "{FF0000}Your health is already full.");
}
return 1;
}
forward ICanHeal(playerid);
public ICanHeal(playerid)
{
SendClientMessage(playerid, -1, "{FF0000}You can heal yourself now. [/Healme]");
return 1;
}