Y_ini
#4

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


Messages In This Thread
Y_ini - by Stefans94 - 07.03.2011, 16:09
Re: Y_ini - by sim_sima - 07.03.2011, 18:23
Re: Y_ini - by Zh3r0 - 07.03.2011, 18:49
Re: Y_ini - by Mean - 07.03.2011, 19:07
Re: Y_ini - by Stigg - 07.03.2011, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)