Saving players stats on changes or in timer? [MySQL]
#10

Quote:
Originally Posted by TheToretto
View Post
Just use this..

pawn Code:
public OnGameModeExit()
{
   for(new i; i < MAX_PLAYERS; i++)
        OnPlayerDisconnect(i, 1);
    return 1;
}
That won't work when the server crash or you force close the server, OnGameModeExit won't be called.

Also described on the wiki of OnGameModeExit (https://sampwiki.blast.hk/wiki/OnGameModeExit)
Quote:

This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command or pressing the close-button on the Windows console.

Reply


Messages In This Thread
Saving players stats on changes or in timer? [MySQL] - by GospodinX - 21.10.2018, 14:28
Re: Saving players stats on changes or in timer? [MySQL] - by KinderClans - 22.10.2018, 15:04
Re: Saving players stats on changes or in timer? [MySQL] - by Dignity - 22.10.2018, 16:15
Re: Saving players stats on changes or in timer? [MySQL] - by DaniceMcHarley - 22.10.2018, 16:17
Re: Saving players stats on changes or in timer? [MySQL] - by Garr - 30.10.2018, 18:07
Re: Saving players stats on changes or in timer? [MySQL] - by BlackBank - 31.10.2018, 00:10
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 31.10.2018, 00:13
Re: Saving players stats on changes or in timer? [MySQL] - by BlackBank - 31.10.2018, 00:18
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 31.10.2018, 00:35
Re: Saving players stats on changes or in timer? [MySQL] - by BlackBank - 31.10.2018, 00:39
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 31.10.2018, 09:26
Re: Saving players stats on changes or in timer? [MySQL] - by Ermanhaut - 02.11.2018, 10:47
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 02.11.2018, 10:55
Re: Saving players stats on changes or in timer? [MySQL] - by AmigaBlizzard - 02.11.2018, 11:32
Re: Saving players stats on changes or in timer? [MySQL] - by IdonTmiss - 07.11.2018, 11:48
Re: Saving players stats on changes or in timer? [MySQL] - by Gammix - 12.11.2018, 22:56
Re: Saving players stats on changes or in timer? [MySQL] - by Alteh - 13.11.2018, 19:01
Re: Saving players stats on changes or in timer? [MySQL] - by DRIFT_HUNTER - 16.11.2018, 01:21

Forum Jump:


Users browsing this thread: 3 Guest(s)