you can use
Code:
new myfile[64];
get_customdir(myfile, 63);
format(myfile, 63, "%s/myfile.ini", myfile);
myfile should now contain addons/amxx/custom/myfile.ini for example.
Quick tip: don't try to do that in c with the sprintf function ;)
__________________