Quote:
Originally Posted by AdamR
BTW I thought the way I written it would have been best.
What needs to happen is read the map cycle as normal to determine the next map, but read the previous map to check if it's running now. This is to ensure the map cycle is followed, because if the current map isn't the previous map, it re-schedules the previous map to run again.
That's why I'm reading the map cycle twice.
What's the difference between a CVAR and PCVAR btw?
|
Code:
new p_Cvar
...
p_Cvar = register_cvar("amx_somecvar","1.0");
They sacrifice small bit of memory for speed. get_pcvar_*/set_pcvar_* are direct "pointers" to the CVar memory. Instead of a string look-up. (It's always recommended to use PCvar's over CVars)
__________________