SA-MP Forums Archive
[HELP] Y_Ini saving - 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: [HELP] Y_Ini saving (/showthread.php?tid=564601)



[HELP] Y_Ini saving - Luca12 - 22.02.2015

Hello I register my self on server and when I'm done I check my ini file and inside of my file is just password and level but there's no AdminLvl Skin Leader Member why is that and I disconnect from server but it just in file is Password and Level


Re: [HELP] Y_Ini saving - arakuta - 22.02.2015

And we have to guess your code?


Re: [HELP] Y_Ini saving - Luca12 - 22.02.2015

onplayer disconnect

pawn Код:
new INI:file = INI_Open(Path(playerid));
        INI_WriteInt(file,"Level",PlayerInfo[playerid][Level]);
        INI_WriteInt(file,"Sex",PlayerInfo[playerid][Sex]);
        INI_WriteInt(file,"Skin",PlayerInfo[playerid][Skin]);
        INI_WriteInt(file,"Register",PlayerInfo[playerid][Register]);
        INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][AdminLevel]);
        INI_WriteInt(file,"Leader",PlayerInfo[playerid][Leader]);
        INI_WriteInt(file,"Member",PlayerInfo[playerid][Member]);
        INI_Close(file);
ondialogresponse register

pawn Код:
new INI:file = INI_Open(Path(playerid));
INI_WriteString(file,"Password",hashpass);
        INI_WriteInt(file,"Level",0);
        INI_WriteInt(file,"Sex",0);
        INI_WriteInt(file,"Skin",0);
        INI_WriteInt(file,"Register",0);
        INI_WriteInt(file,"AdminLevel",0);
        INI_WriteInt(file,"Leader",0);
        INI_WriteInt(file,"Member",0);
        INI_Close(file);