Undefined symbols
#1

pawn Код:
public Detecthp()
{
    for(new i = 0; i< MAX_PLAYERS; i++)
    {
        if(GetPlayerHealth(i) != PInfo[i][Health])
        {
            new str[128];
            new LName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, LName, sizeof(LName));
            format(str, sizeof(str), "%s has been banned from the server. (Reason:Health hack)", LName);
            Kick(playerid);
        }
    }
    return 1;
}
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\My Own Trucking\pawno\include\anti-cheat.inc(55) : warning 202: number of arguments does not match definition
C:\Users\carlo\Desktop\SA-MP Server\My Own Trucking\pawno\include\anti-cheat.inc(59) : error 017: undefined symbol "playerid"
C:\Users\carlo\Desktop\SA-MP Server\My Own Trucking\pawno\include\anti-cheat.inc(61) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
whole script
http://pastebin.com/hZ372zVr
Reply
#2

pawn Код:
forward Detecthp();
public Detecthp()
{
    for(new i = 0; i< MAX_PLAYERS; i++)
    {
        new Float:HP;
        if(GetPlayerHealth(i,HP) != PInfo[i][Health])
        {
            new str[128];
            new LName[MAX_PLAYER_NAME];
            GetPlayerName(i, LName, sizeof(LName));
            format(str, sizeof(str), "%s has been banned from the server. (Reason:Health hack)", LName);
            Kick(i);
        }
    }
    return 1;
}
Reply
#3

Tnx REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)