All pastes #729506 Raw Edit

Y_Less

public cpp v1 · immutable
·published 2007-10-08 01:43 UTC
rendered paste body
// At the top of your filenew    gTimerMinutes = 1,    gTimerHandle;// In Script_OnGameModeInit:INI_ParseFile("settings.txt", "settings_%s");gTimerHandle = CreateTimer("function", gTimerMinutes * 60000, 1);// Elsewhere (not in  function):forward settings_timer(identifier[], text[]);public settings_timer(identifier[], text[]){    if (!strcmp(identifier, "minutes"))    {        gTimerMinutes = strval(text);    }}// In settings.txt[timer] ; tag same as in settings_timerminutes = 2 ; identifier of minutes, 2 is actually a string, hence strval