Raised This Month: $ Target: $400
 0% 

CVAR 'mapcyclefile' always returns 'mapcycle.txt'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-12-2009 , 00:16   Re: CVAR 'mapcyclefile' always returns 'mapcycle.txt'
Reply With Quote #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.
Bad_Bud is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode