04.04.2012, 09:06
Is there a way to delete a file with Y_INI?I mean I've read the tutorial,but I only saw functions like Load,Parse,Create,etc. but not Delete!?
new pName[MAX_PLAYER_NAME], str[50];
GetPlayerName(playerid, pName, sizeof pName);
format(str, sizeof str, "%s.ini", pName);
fremove(str);
// Of course, this is just an example. If you saved the info into "House" folder, you'd have to format the str otherway:
format(str, sizeof str, "/Houses/%s.ini", pName);
fremove(str)