|
Author
|
Message
|
|
Senior Member
Join Date: Oct 2006
Location: The internet
|

01-12-2009
, 00:16
Re: CVAR 'mapcyclefile' always returns 'mapcycle.txt'
|
#1
|
With amx_nextmap_svenfix set to 0, I had changed the mapcyclefile cvar to newmapcyclefile.txt, and then made another and changed it to oldmapcyclefile.txt, and both times it read the files and worked fine.
I was trying to print out every value that went into every variable into a logfile, but it wasn't printing them, which is what I'm going to mess with next time I look at it -- or what you should do if you don't want to wait for me to mess with it. Either way, I suggest trying to make the fix an either-or option, not an appendage to the already existing plugin. It should be if(svenfix){do svenfix type map checking}else{do it the other way}, instead of {do it}if(svenfix){fix it}.
And you could probably mess around a little bit and combine the if statement and the console command mainly into one function, and if you really want to impress people: change all of those cvars to pcvars.
__________________
Last edited by Bad_Bud; 01-12-2009 at 00:19.
|
|
|
|