21.01.2011, 04:45
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
When My Player Logs In
What i want it to do when its done with the tutorial:
i just need it to save it to the file, please help (i will post more info if needed)
What i am doing:
OnPlayerDisconnect
pawn Код:
dini_IntSet(file,"Tutorial",gPlayerInfo[playerid] [Tutorial] = gPlayerInfo[playerid] [Tutorial]);
pawn Код:
gPlayerInfo[playerid] [Tutorial] = dini_Int(file,"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)