24.02.2013, 12:10
(
Последний раз редактировалось Infinity90; 24.02.2013 в 14:13.
)
pawn Код:
while(fread(example, string2212))
{
if(!strcmp(playerip, string2212, true, 16)) {
format(str123,sizeof(str123),"{00FF40}Your IP has been banned from this server\nOutput: %s\n{FF8000}To request a unban, visit http://www.gta-zombies.net and take a screen shot of this!",string2212);
ShowPlayerDialog(playerid,9781,DIALOG_STYLE_MSGBOX,"{FF0000}You're banned from this server.",str123,"Okay","");
SetTimerEx("KickPlayer",1000,0,"i",playerid);
}
fclose(example);
return 0;
}
EXAMPLE:
123.222.22.2 \r\n - Reads
127.0.0.1 \r\n - Doesn't read
123.123.123.2 \r\n - Doesn't read
----------------
It's only reading the first line, ones below that don't get read.