1 Error with my anticheat.
#1

Код:
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(28657) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(28657) : warning 215: expression has no effect
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(28657) : error 001: expected token: ";", but found "if"
pawn Код:
forward AntiCheat();
public AntiCheat()
{
    new weap, ammo;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && ADMIN[i] == 0)
        {
            GetPlayerWeaponData(i, 7, weap, ammo); //Missle Launcher
            else if(ammo > 1 && weap == 36 && MISSLE36[i] == false) //Line With Error
            {
                new string [128];
                new pName[MAX_PLAYER_NAME];
                GetPlayerName(i, pName, sizeof(pName));
                format(string, sizeof(string), "BANNED: %s has been auto banned by console. [Missle Launcher]", pName);
                SendClientMessageToAll(COLOR_RED, string);
                printf(string);
                GetPlayerName(i, pName, sizeof(pName));
                BanEx(i, "%s has been auto banned by console. [Missle Launcher]");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
1 Error with my anticheat. - by BP13 - 22.11.2009, 23:53
Re: 1 Error with my anticheat. - by Peter_Corneile - 23.11.2009, 00:21
Re: 1 Error with my anticheat. - by bigcomfycouch - 23.11.2009, 00:34
Re: 1 Error with my anticheat. - by BP13 - 23.11.2009, 03:21

Forum Jump:


Users browsing this thread: 1 Guest(s)