A little help
#1

hello there,

can some one fix this warnings i confused a little about this line

Warns:
Код:
warning 211: possibly unintended assignment
Line:
pawn Код:
if (PlayerInfo[playerid][ban] = 1)
    {
        new string[128];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        SendClientMessage(playerid, ADMIN_RED, "This name is banned from this server!");
        format(string,sizeof(string),"%s was auto kicked. Reason: Name banned from server",pname);
        SendClientMessageToAll(COLOR_BLUE, string);  print(string);
        Kick(playerid);
    }
Reply
#2

if(PlayerInfo[playerid][ban] == 1)
Reply
#3

ty its work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)