Raised This Month: $ Target: $400
 0% 

Get value from ini file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-03-2017 , 11:15   Re: Get value from ini file
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
PHP Code:
new file fopen(conffile_model"r")
while(!
feof(file))
{
    
// Transfer all lines values from file to szBuffer
    
new szBuffer[32]
    
fgets(fileszBuffercharsmax(szBuffer)) 

    
// Separate they
    
parse(szBufferg_modelscharsmax (g_models), g_skinscharsmax(g_skins))

    
// Remove quites
    
trim(g_models)
    
trim(g_skins)

    return 
fclose(file)

Thanks, but how do I then do it? Will I just use if (g_skins)==0) etc ?
DarthMan 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 21:00.


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