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=608393)
warning 202: number of arguments does not match definition -
Izaki - 31.05.2016
zma4.pwn(5680) : warning 202: number of arguments does not match definition
PHP код:
if(PRESSED(KEY_WALK))
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(pInfo[playerid][pZombieClass] == MUTATEDZOMBIE)
{
if(ServerWeapon(playerid) == 4) <<< Warnings
{
if(gettime() - 9 < knifeAbility[playerid]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
{
new Float:x,Float:y,Float:z,Float:Angle;
GetPlayerPos(playerid,Float:x,Float:y,Float:z);
GetPlayerFacingAngle(playerid,Float:Angle);
foreach(Player,i)
{
switch(GetPlayerSkin(i))
{
case NON_IMMUNE:
{
if(GetDistanceBetweenPlayers(playerid,i) < 1.8)
{
GetClosestPlayer(i);
GetPlayerPos(i,x222,y222,z222);
GetPlayerFacingAngle(i,angle222);
SendDeathMessage(playerid,i,4);
SpawnPlayer(i);
SetTimerEx("ZombieInfect", 800, false, "i", i);
pInfo[i][pDeaths]++;
pInfo[playerid][pKills] += 2;
knifeAbility[playerid] = gettime();
}
}
}
}
}
}
}
}
}
Re: warning 202: number of arguments does not match definition -
F1N4L - 31.05.2016
ServerWeapon(playerid) is a stock? callback?
Re: warning 202: number of arguments does not match definition -
ilijap - 31.05.2016
ServerWeapon is: ServerWeapon(playerid, id, ammo); use GetPlayerWeapon instead
Re: warning 202: number of arguments does not match definition -
Izaki - 31.05.2016
SOLVED Thanks