Crashing a server - 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)
+--- Thread: Crashing a server (
/showthread.php?tid=388911)
Crashing a server -
SweetCZ - 31.10.2012
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);
}
}
Re: Crashing a server -
WizBoy - 31.10.2012
Soooo..What is the problem here on this ''OnPlayerDisconnect''? i mean why did you pasted it here?
Re: Crashing a server -
SweetCZ - 31.10.2012
when i have it in the linux server, server crashed after (some player disconnected and called this public)
format(napis, sizeof(napis), "\nAdministrator=%d", Information[playerid][Administrator]); fwrite(SaveFile, napis);
File is created...