Problem OnGameModeExit
#1

I have a question. As typing "exit" or "gmx" on the CMD console in Windows, not it saves me nothing. Why?
Reply
#2

Can you show your code?
Reply
#3

Код:
public OnGameModeExit()
{
    new name[35 + 3];
    for(new i, j = sizeof(TurfInfo); i < j; i++)
    {
        format(name, sizeof(name), "%s%i", TurfInfo[i][TurfName], i);
        dini_IntSet("turfs.ini", name, TurfInfo[i][TurfOwner]);
    }
    return 1;
}
Reply
#4

Those commands don't call OnGameModeExit callback. Ctrl + C (which is for closing Windows Console shortcut) does.

Quote:
Originally Posted by Wiki
Description:
This callback is called when a gamemode ends, either through 'gmx', the server being shut down, or GameModeExit.
But using GMX should call it too. So maybe your code is wrong. Would have to do tests.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)