Raised This Month: $ Target: $400
 0% 

Parsing code from a cfg file.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PreDominance
Member
Join Date: Jul 2014
Old 08-07-2014 , 10:44   Parsing code from a cfg file.
Reply With Quote #1

Greetings,

Is it possible at all to take code from a CFG file, parse it, then run it? For example.

code.cfg
Code:
   cs_set_user_money(id, 16000);
include.inl

Code:
..open file, etc.. new szLine[MAX_LINE_LENGTH]; 
fgets(file, szLine, charsmax(szLine)); 
..execute szLine..
I do not want to map out commands, e.g:
Code:
if (equali(szLine, "cs_set_user_money")) {}
Thanks for any help!

Last edited by PreDominance; 08-07-2014 at 10:45.
PreDominance 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 13:18.


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