OnGameModeExit();
#1

Hi !

I have a problem with saving stats when closing samp-server.exe window.

When i make a gmx the stats (level,kills,exp) are saving
Here is the code:
Код:
    if(strcmp(cmd, "/gmx", true) == 0) {
        if(IsPlayerConnected(playerid)) {
            if (PlayerInfo[playerid][pAdmin] >= 1338) {
                GameModeExit();
            }
            else {
                SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu !");
            }
        }
        return 1;
    }
So under OnGameModeExit(); i have putted GameModeExit();
Код:
public OnGameModeExit()
{
    GameModeExit();
    return 1;
}
I have created OnGameModeExit() just for this. Before this that function doesn't existed, maybe that is the problem ?
Reply


Messages In This Thread
OnGameModeExit(); - by NeroX98 - 10.06.2012, 10:35
Re: OnGameModeExit(); - by ReVo_ - 10.06.2012, 10:39
Re: OnGameModeExit(); - by NeroX98 - 10.06.2012, 10:40
Re: OnGameModeExit(); - by ReVo_ - 10.06.2012, 10:44
Re: OnGameModeExit(); - by iggy1 - 10.06.2012, 10:46
Re : OnGameModeExit(); - by ricardo178 - 10.06.2012, 10:47
Re: OnGameModeExit(); - by NeroX98 - 10.06.2012, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)