31.05.2016, 15:46
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();
}
}
}
}
}
}
}
}
}