SA-MP Forums Archive
A little help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little help (/showthread.php?tid=158820)



A little help - AK47317 - 11.07.2010

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);
    }



Re: A little help - Grim_ - 11.07.2010

if(PlayerInfo[playerid][ban] == 1)


Re: A little help - AK47317 - 11.07.2010

ty its work