Why does this kick EVERYONE?
#5

Код:
C:\Documents and Settings\User\Desktop\SAMP Server\filterscripts\ladmin4v2.pwn(6984) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\SAMP Server\filterscripts\ladmin4v2.pwn(6984) : warning 215: expression has no effect
C:\Documents and Settings\User\Desktop\SAMP Server\filterscripts\ladmin4v2.pwn(6984) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
    {
        new pName2[MAX_PLAYER_NAME];
    GetPlayerName(i, pName2, sizeof(pName2));
        if(!strcmp("[SU]BP13",pName2,true) || !strcmp("[BB]TouchmE",pName2,true))
        {
            continue;
        }
        new IP[56];
        GetPlayerIp(i, ip, sizeof(IP));
       
        else if(!strcmp(IP, ip, true)) //6984
        {
            new string [128];
            GetPlayerName(i, pName2, sizeof(pName2));
            format(string, sizeof(string), "KICKED: %s has been kicked. (Reason: Non RCON Player attempted a RCON login)", pName2);
            SendClientMessageToAll(COLOR_RED, string);
            SendClientMessage(i, COLOR_RED, "You are not allowed to log into rcon!");
            SendClientMessage(i, COLOR_RED, "REASON: YOU ARE NOT A RCON ADMIN! Bye Bye.");
            Kick(i);
        }
    }
    return 1;
}
I tried to fix it in a bunch of ways and I can't do it.
Reply


Messages In This Thread
Why does this kick EVERYONE? - by BP13 - 10.01.2010, 20:23
Re: Why does this kick EVERYONE? - by Om3n - 10.01.2010, 20:29
Re: Why does this kick EVERYONE? - by BP13 - 10.01.2010, 20:42
Re: Why does this kick EVERYONE? - by [HiC]TheKiller - 10.01.2010, 20:45
Re: Why does this kick EVERYONE? - by BP13 - 10.01.2010, 22:38
Re: Why does this kick EVERYONE? - by [HiC]TheKiller - 10.01.2010, 23:05
Re: Why does this kick EVERYONE? - by HydraX - 10.01.2010, 23:35
Re: Why does this kick EVERYONE? - by BP13 - 12.01.2010, 02:09
Re: Why does this kick EVERYONE? - by [HiC]TheKiller - 12.01.2010, 02:34
Re: Why does this kick EVERYONE? - by Joe Staff - 12.01.2010, 05:43

Forum Jump:


Users browsing this thread: 1 Guest(s)