31.10.2012, 00:02
Hi guys, i have problem with crashing a server. I used to this on the windows server and it worked correctly, but when i have it in the linux server, server crashed after "format". Sorry for my bad english... Thanks for help
Код:
public OnPlayerDisconnect(playerid, reason)
{
if(Information[playerid][IsLogged] == true)
{
new string[100];
format(string, sizeof(string), soubor, PlayerConnectName(playerid));
new File:SaveFile = fopen(string, io_write);
new napis[500];
format(napis, sizeof(napis), "\nAdministrator=%d", Information[playerid][Administrator]);
fwrite(SaveFile, napis);
fclose(SaveFile);
}
}

