14.04.2019, 09:10
SOLVED, in this code wasn't any mistake.
Why is this not working? It doesn't make the file.
pawn Code:
DOF2_CreateFile(GetFile(playerid));
DOF2_SetInt(GetFile(playerid), "Level", 0);
DOF2_SetInt(GetFile(playerid), "Skin", 0);
DOF2_SaveFile();
pawn Code:
#define USER_FILE "Accs/%s.ini"
GetFile(playerid){
new pFile[MAX_PLAYER_NAME + 1 + 15];
format(pFile, sizeof(pFile), USER_FILE, pName(playerid));
return pFile;
}