warning with GetPlayerHealth - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warning with GetPlayerHealth (
/showthread.php?tid=177325)
warning with GetPlayerHealth -
LZLo - 17.09.2010
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerHealth(playerid) < 2) return SetPlayerHealth(playerid, 0);
return 1;
}
and the warning:
Quote:
warning 202: number of arguments does not match definition
|
HOW CAN I FIX IT?
Re: warning with GetPlayerHealth -
DeathOnaStick - 17.09.2010
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:PHealth;
GetPlayerHealth(playerid, PHealth);
if(PHealth< 2) return SetPlayerHealth(playerid, 0);
return 1;
}
Is that's it?
Re: warning with GetPlayerHealth -
LZLo - 17.09.2010
yes, sure
thank you!