07.03.2011, 19:07
Example of reading:
To load the score from file:
Simplest way I can think of.
pawn Code:
forward LoadMyStats( playerid, name[ ], value[ ] );
public LoadMyStats( playerid, name[ ], value[ ] )
{
if( !strcmp( name, "Score", false ) )
SetPlayerScore( playerid, strval( value ) );
return true;
}
pawn Code:
INI_ParseFile( account, "LoadMyStats", false, true, playerid, true, false );