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 <---
}
}
__________________