Dini won't save on player disconnect
#1

Hi guys,

I can't get an integer to save to an ini file when a player disconnects. The value of the field in the file I'm trying to edit simply won't change.

pawn Код:
dini_IntSet(CurrentFile,"Registered",gPlayerInformation[playerid][PLAYER_REGISTERED]);
with CurrentFile being a string:
pawn Код:
format(CurrentFile,sizeof(file),PlayerFile,gPlayerInfo[playerid][PLAYER_NAME]); // PlayerFile: #define PlayerFile "Administration/Users/%s.ini"
I tested whether PLAYER_REGISTERED was holding the right value, and it appeared to be the case. So I can only think of something going wrong in the opening file/writing part. Don't know what, though.

The funny thing is that when a player connects, it actually does write a value...
pawn Код:
dini_IntSet(file,"Registered",-1);
I would appreciate it if you could help me out here!
Thanks!
Reply


Messages In This Thread
Dini won't save on player disconnect - by Born2die - 21.01.2012, 20:29
Re: Dini won't save on player disconnect - by Konstantinos - 21.01.2012, 20:50
Re: Dini won't save on player disconnect - by Born2die - 21.01.2012, 21:35
Re: Dini won't save on player disconnect - by Born2die - 21.01.2012, 23:54

Forum Jump:


Users browsing this thread: 2 Guest(s)