DOF2 not working - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DOF2 not working (
/showthread.php?tid=665732)
DOF2 not working -
Koreadars - 14.04.2019
SOLVED, in this code wasn't any mistake.
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;
}
Why is this not working? It doesn't make the file.
Re: DOF2 not working -
Hunud - 14.04.2019
DOF2 really ?
Re: DOF2 not working -
Koreadars - 14.04.2019
Yeah. I don't know what'd be bad about that but that's not the purpose of this topic.
Re: DOF2 not working -
Koreadars - 14.04.2019
Oh I know where's the mistake, i've got one variable which can't be there. In fact, solved. Now please tell me what's bad about DOF2...