Raised This Month: $ Target: $400
 0% 

Help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 04-30-2006 , 19:26  
#6

Quote:
Originally Posted by Dizzy
Yeah, v3x I wasn't sure how to make it check a .cfg file for STEAM ID's listed...

I tried to look at the admin.sma that comes with amxmodx, but I guess I was extremely unsuccessful, halp plz!
Could you please tell us what you are trying to do, since I don't really see it

If you are trying to load things from a file:

Code:
//Load the data new filepath[64]; get_configsdir(filepath, 63); format(filepath, 63, "%s/myfile.cfg", filepath);     if(file_exists(filepath)) {     new output[128];         //Open file     new fHandle = fopen(filepath, "rt");         //Checks for failure     if(!fHandle)         return;         //Loop through all lines     for(new a = 0; !feof(fHandle); a++)     {         //Get line         fgets(fHandle, output, 511);         //PUT YOUR OWN CODE HERE <---     } }
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood 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 05:08.


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