SA-MP Forums Archive
OnGameModeExit does not work - 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 does not work (/showthread.php?tid=294339)



OnGameModeExit does not work - LeNy - 01.11.2011

Hello. I have a problem with OnGameModeExit because I did not work.
The whole looks like this:
pawn Код:
public OnGameModeExit()
{
print("UNLOAD");
mysql_close();
return true;
}
But the problem is that in our server log files nothing appears


Re: OnGameModeExit does not work - sleepysnowflake - 01.11.2011

Yeah well, You gotta do /rcon gmx on server or gmx in the console.
When you quit the console it won't show anytihng.


Re: OnGameModeExit does not work - LeNy - 01.11.2011

just /rcon gmx or exit play OnGameModeExit?


Re: OnGameModeExit does not work - Jakku - 01.11.2011

Try typing "exit" to the console


Re: OnGameModeExit does not work - Michael@Belgium - 01.11.2011

maybe in stead of "return true;" : "return 1;"
I know it's the same but you never know ..


Re: OnGameModeExit does not work - sleepysnowflake - 01.11.2011

Michael, that is like this: 2 + 1 = 1 + 2

Same.


Re: OnGameModeExit does not work - LeNy - 01.11.2011

And why the moment of closing the console by "x" OnGameModeExit not working? I always worked


AW: Re: OnGameModeExit does not work - Nero_3D - 01.11.2011

Quote:
Originally Posted by LeNy
Посмотреть сообщение
And why the moment of closing the console by "x" OnGameModeExit not working? I always worked
It never worked with pressing the x
If you press the x its the same as deleting the task
Means the programm is forced by the OS to shutdown