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.