Score saving
#9

Y_INI example:
pawn Код:
CMD:savemyscore( playerid, params[ ] )
{
    new file[ 128 ], name[ 24 ];
    GetPlayerName( playerid, name, sizeof name );
    format( file, sizeof file, "SomeFolder/%s.ini", name );
    new INI:PlayerAcc = INI_Open( file );
    INI_WriteInt( PlayerAcc, "Score", GetPlayerScore( playerid ) );
    INI_Close( PlayerAcc );
    return SendClientMessage( playerid, 0xAAAAAA, "Your score has been saved to your userfile. FOLDER: scriptfiles/SomeFolder/yourname.ini" );
}
Reply


Messages In This Thread
Score saving - by chrifokun - 09.03.2011, 15:37
Re: Score saving - by Stigg - 09.03.2011, 15:39
Re: Score saving - by Johnson_boy - 09.03.2011, 15:39
AW: Score saving - by chrifokun - 09.03.2011, 15:42
Re: Score saving - by int3s0 - 09.03.2011, 15:43
Re: Score saving - by sim_sima - 09.03.2011, 15:45
AW: Score saving - by chrifokun - 09.03.2011, 15:46
Re: Score saving - by ilikenuts - 09.03.2011, 16:00
Re: Score saving - by Mean - 09.03.2011, 16:05
AW: Score saving - by chrifokun - 09.03.2011, 16:12

Forum Jump:


Users browsing this thread: 3 Guest(s)