File functions crashing the server.
#3

Try..

Quote:

new tmp2[100];
GetPlayerIp(playerid,tmp2,100);
format(string, sizeof(string), "Bans/%s.ini", tmp2);
if(fexist(string))
{
new File:BanF = fopen(string, io_read);
if(BanF)
{
fread(BanF, string);
fclose(BanF);
}
}
if(strcmp(string, "Banned.", true) == 0)
{
Kick(playerid);
}

Reply


Messages In This Thread
File functions crashing the server. - by Homerman - 08.10.2011, 12:56
Re: File functions crashing the server. - by Homerman - 08.10.2011, 23:15
Re: File functions crashing the server. - by Belengher - 14.06.2016, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)