OnGameModeExit - Help
#1

hey, OnGameModeExit is called when I shut down the server right? Because When I do so, I can't find the INI file that's supposed to be in the "mapicons" folder in "scriptfiles"
pawn Code:
public OnGameModeExit()
{
    new i, INI:mapicondata = INI_Open("/mapicons/Mapicondata.INI");
    INI_SetTag(mapicondata, "data");
    INI_WriteInt(mapicondata, "nexticonid", nexticonid);
    INI_WriteInt(mapicondata, "number_of_deleted_mapicons", ndeletedmapicons);
    INI_WriteInt(mapicondata, "nextdeletedicon", nextdeletedicon);
    INI_SetTag(mapicondata, "saved_deleted_mapicons");
    for (i=0; i<=99; i++)
    {
        new savestring[128];
        format(savestring, 128, "deletedmapicon%i", i);
        INI_WriteInt(mapicondata, savestring, deletedmapicon[i]);
    }
    INI_Close(mapicondata);
    return 1;
}
No Compile Errors or warnings
Reply


Messages In This Thread
OnGameModeExit - Help - by Sarra - 13.08.2014, 12:58
Re: OnGameModeExit - Help - by Abagail - 13.08.2014, 13:01
Re: OnGameModeExit - Help - by Virtual1ty - 13.08.2014, 13:02
Re: OnGameModeExit - Help - by XStormiest - 13.08.2014, 13:07
Re: OnGameModeExit - Help - by Sarra - 13.08.2014, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)