Saving stats on exit...
#10

I realized XAdmin uses DINI
then

pawn Код:
public OnPlayerConnect( playerid )
{
    Variables[ playerid ][ Kills ] = dini_Int( GetPlayerFile( playerid ), "Kills" );
    Variables[ playerid ][ Deaths ] = dini_Int( GetPlayerFile( playerid ), "Deaths" );

    return 1;
}

public OnPlayerDisconnect( playerid, reason )
{
    dini_IntSet( GetPlayerFile( playerid ), "Kills", Variables[ playerid ][ Kills ] );
    dini_IntSet( GetPlayerFile( playerid ), "Deaths", Variables[ playerid ][ Deaths ] );

    return 1;
}
P.S: GetPlayerFile is defined in XAdmin include.
Reply


Messages In This Thread
Saving stats on exit... - by Tigerbeast11 - 26.08.2011, 00:35
Re: Saving stats on exit... - by Tanush123 - 26.08.2011, 01:23
Re: Saving stats on exit... - by Tigerbeast11 - 26.08.2011, 01:28
Re: Saving stats on exit... - by =WoR=G4M3Ov3r - 26.08.2011, 01:30
Re: Saving stats on exit... - by Tigerbeast11 - 26.08.2011, 01:32
Re: Saving stats on exit... - by Bakr - 26.08.2011, 01:33
Re: Saving stats on exit... - by Tigerbeast11 - 26.08.2011, 01:40
Re: Saving stats on exit... - by =WoR=G4M3Ov3r - 26.08.2011, 01:43
Re: Saving stats on exit... - by Tigerbeast11 - 26.08.2011, 01:45
Re: Saving stats on exit... - by Basicz - 26.08.2011, 01:57
Re: Saving stats on exit... - by Tigerbeast11 - 26.08.2011, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)