Dini won't save on player disconnect
#3

Quote:
Originally Posted by Dwane
Посмотреть сообщение
If you want to set 1 = registered and 0 = not registered use
pawn Код:
new
    file[ 50 ];

format( CurrentFile, sizeof( CurrentFile ), PlayerFile, gPlayerInfo[ playerid ][ /* your_enum_here */ ] );
if( dini_Exists( CurrentFile )
{
    dini_IntSet( file, "Registered", 1 );
}
Else, if you want to save Player's name as I saw here "PLAYER_NAME". That is string, not integer.
I'm actually trying to change the value of my IsRegistered enumeration PLAYER_REGISTERED (which is an integer and is set to -1) with -1 and 0 being not registered and 1 being registered.
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)