Raised This Month: $ Target: $400
 0% 

Writing more than 1 cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Locks
Senior Member
Join Date: Sep 2005
Old 03-26-2006 , 12:12   Writing more than 1 cvar
Reply With Quote #1

How do I make this write more than 1 cvar into a .CFG?

Ive tried this and it wont work.
Code:
public ExecCvars() {     if(get_cvar_num("kz_on") && get_cvar_num("kz_management"))     {         new szConfigsdir[50],szLocation[50]         get_configsdir(szConfigsdir,49)         format(szLocation,49,"%s/kz.cfg",szConfigsdir)         if(file_exists(szLocation))             server_cmd("exec %s",szLocation)         else         {             write_file(szLocation,"mp_autoteambalance 0",0)             write_file(szLocation,"mp_limitteams 99",0)             server_cmd("exec %s",szLocation)         }     } }
Locks is offline
 



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 16:37.


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