warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (
/showthread.php?tid=375297)
warning 202: number of arguments does not match definition -
rumen98 - 06.09.2012
PHP код:
forward Regener(playerid);
public Regener(playerid)
{
SetPlayerHealth(playerid,GetPlayerHealth(playerid)+Regen[playerid]);
Regen[playerid] = 0;
KillTimer(RTimer);
return 1;}
what is this warning
PHP код:
C:\Documents and Settings\user\Desktop\zombierpg.pwn(301) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
the line 301 is SetPlayerHealth(playerid,GetPlayerHealth(playerid) +Regen[playerid]); why give me warning
Re: warning 202: number of arguments does not match definition -
Deal-or-die - 06.09.2012
I'm not sure it matters with tag mismatch but have you tried placing a space either side of the '+' ?
Re: warning 202: number of arguments does not match definition -
leonardo1434 - 06.09.2012
https://sampwiki.blast.hk/wiki/GetPlayerHealth
Re: warning 202: number of arguments does not match definition -
Youarex - 06.09.2012
In pawno as you type any function, after bracket it will show the arguments.
In this case there's missing
&Float:health.
Re : warning 202: number of arguments does not match definition -
lelemaster - 06.09.2012
pawn Код:
forward Regener(playerid);
public Regener(playerid)
{
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid,Health+Regen[playerid]);
Regen[playerid] = 0;
KillTimer(RTimer);
return 1;
}