09.03.2011, 16:05
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" );
}