Pawno compiler stopped working
#1

pawn Код:
public OnPlayerConnect(playerid)
{
    if(ServerLocked == 1)
    {
        if(strcmp(PlayerName2(playerid), "[_FFG_]BuLLeT", true) == 0 || strcmp(PlayerName2(playerid), "[_FFG_]Gatovas", true) == 0)
        {
            SendClientMessage(playerid,COLOR_MAIN,"* Server is locked *");
            Kick(playerid);
            return 1;
        }
    }
    return 1;
}
When i add this, compiller crashes. What's wrong ? I add the same code to other place and it's working correctly.
Reply
#2

try removing this return 1; after kick(Playerid)
Reply
#3

Your missing out some brackets
or u mixed up the strcmp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)