Dini file registration help.
#1

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)
Reply
#2

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

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

Can someone help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)