PDA

View Full Version : INI Files


Sarra
12/08/2014, 02:03 PM
Hello, I wonder if there are functions that allow you to remove or edit the name of a INI file
I'm using Y_INI

Don_Cage
12/08/2014, 03:04 PM
http://wiki.sa-mp.com/wiki/Fremove

fremove(yourthing);
Will actually remove the file dini,yini whatever.

Example:


new string[64];
format(string, sizeof(string), MyFile, FileID);
fremove(string);


or

new name[MAX_PLAYER_NAME], string[64];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s.ini", name);
fremove(string);

Sarra
12/08/2014, 03:20 PM
thanks +rep