SA-MP Forums Archive
OnGameModeExit - 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: OnGameModeExit (/showthread.php?tid=418172)



OnGameModeExit - Brokenbreaken - 23.02.2013

Why i cant do anything in OnGameModeExit?
Код:
public OnGameModeExit()
{
print("ssss");
return 1;
}
or
Код:
public OnGameModeExit()
{
	new String[200];
	KillTimer(Server[ServerGlobalFunctionsTimer]);
	new File:File;
	File = fopen(Server[ServerFile],io_write);
	format(String,200,"%d %d %d %d %d %d %d %d",Server[ServerVisits],Server[ServerKills],Server[ServerDeaths],Server[ServerSuicides],Server[ServerBans],Server[ServerKicks],Server[ServerRegisteredPlayers],Server[ServerRecordPlayers]);
	fwrite(File,String);
	fclose(File);
	return 1;
}
And nothing... this problem occurs only in version 0.3x