Simple warning - 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)
+--- Thread: Simple warning (
/showthread.php?tid=416275)
Simple warning -
Ben7544 - 16.02.2013
Hey, what's wrong with it?
pawn Код:
if (strcmp("/kill", cmdtext, true) == 0)
{
SetPlayerHealth(0);
return 1;
}
The warning:
Код:
warning 202: number of arguments does not match definition
Re: Simple warning -
DaRk_RaiN - 16.02.2013
That warning means you're missing a (non-optional) parameter in that function, which in this case is playerid.
pawn Код:
if (strcmp("/kill", cmdtext, true) == 0)
{
SetPlayerHealth(playerid,0);
return 1;
}
Re: Simple warning -
B-Matt - 16.02.2013
SetPlayerHealth(playerid, 0.0);
Try this.
AW: Simple warning -
Blackazur - 16.02.2013
Код:
if (strcmp("/kill", cmdtext, true) == 0)
{
SetPlayerHealth(playerid,0);
return 1;
}