Raised This Month: $ Target: $400
 0% 

[Help] How to create a config or .ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-10-2012 , 15:22   Re: [Help] How to create a config or .ini
Reply With Quote #5

I'm trying to add the second argument as a variable, but it seems it has to be an array. How to fix this with a variable? Should i use formatex?
EDIT:
PHP Code:
new config[33] = "votemap.cfg" 
PHP Code:
public Cmd_WriteFile() {
    new 
szTemp[555 char]
    
formatex(szTempcharsmax(szTemp), "TotalVotes: %i"iTotalVotes)
    
write_file(configszTemp, -1)
    
formatex(szTempcharsmax(szTemp), "Average of Total Votes: %i/5"Average)
    
write_file(configszTemp, -1)
    
formatex(szTempcharsmax(szTemp), "Map: %s"szMap)
    
write_file(configszTemp, -1)

Something like this or can i optimize this a lot more?
__________________

Last edited by Napoleon_be; 05-10-2012 at 15:32.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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 00:26.


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