Kicking tons of IDs on server starting [REP+]
#5

Try this:
Код:
	    new string[128+40];
     	for(new x = 0; x < sizeof(ForbidNames); x++)
	    {
            if(strcmp(pName(playerid), ForbidNames[x], true))
			{
			    format(string, sizeof string, "** Player %s(ID:%d) has been kicked by the Server (Forbidden Name)", pName(playerid), playerid);
			    SendClientMessageToAll(COLOR_GREY, string);
			    printf(string);
			    SaveLog("kicklog.txt", string);
			    KickDelay(playerid);
			    return 1;
			}
	    }
Your problem is here:
Код:
if(!strcmp(pName(playerid), ForbidNames[x], true))
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)