SA-MP Forums Archive
Dini file registration help. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dini file registration help. (/showthread.php?tid=214342)



Dini file registration help. - kin - 21.01.2011

I am trying to add my own little attribute to my dini system, but i cannot get it to work. I used the same variables as the tutorial i read, but i do not understand how to use it in my own way...


What i am doing:


OnPlayerDisconnect
pawn Код:
dini_IntSet(file,"Tutorial",gPlayerInfo[playerid] [Tutorial] = gPlayerInfo[playerid] [Tutorial]);
When My Player Logs In
pawn Код:
gPlayerInfo[playerid] [Tutorial] = dini_Int(file,"Tutorial");
What i want it to do when its done with the tutorial:

pawn Код:
gPlayerInfo[playerid] [Tutorial] = 1;

i just need it to save it to the file, please help (i will post more info if needed)


Re: Dini file registration help. - Krx17 - 21.01.2011

Your saving it wrong.
pawn Код:
dini_IntSet(file, "Tutorial", gPlayerInfo[playerid][Tutorial]);



Re: Dini file registration help. - kin - 21.01.2011

Quote:
Originally Posted by Krx17
Посмотреть сообщение
Your saving it wrong.
pawn Код:
dini_IntSet(file, "Tutorial", gPlayerInfo[playerid][Tutorial]);
tried that before still didnt work


Re: Dini file registration help. - kin - 22.01.2011

Can someone help?