warning 202: number of arguments does not match definition
#1

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();
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        } 
Reply
#2

ServerWeapon(playerid) is a stock? callback?
Reply
#3

ServerWeapon is: ServerWeapon(playerid, id, ammo); use GetPlayerWeapon instead
Reply
#4

SOLVED Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)