DriftCount Didnt Save Score
#7

Yes, basically.
CTRL + F - Seach for #include <a_samp> and put it under that line.

pawn Код:
#include <YSI_Y_ini>

Search for "OnPlayerDisconnect" and paste it inside somewhere, so looks like this.

pawn Код:
public OnPlayerDisconnect(playerid)
{
    SavePosStats(playerid);
    SaveGunStats(playerid);

    RemovePlayerAttachedObject(playerid, 0);
    RemovePlayerAttachedObject(playerid, 1);
   
    if(IsPlayerConnected(playerid) && IsLoggedIn{playerid} == 1)
    {
        //
        if(JailTime[playerid] > 0)
        {
            PlayerInfo[playerid][jTime] = JailTime[playerid];
        }
        //
       
        SaveBankStats(playerid);
        SaveFightStats(playerid);
        SaveUserStats(playerid);
        SaveDegreeStats(playerid);
    }
}
Reply


Messages In This Thread
DriftCount Didnt Save Score - by Awankz - 23.12.2013, 14:19
Re: DriftCount Didnt Save Score - by Awankz - 24.12.2013, 02:43
Re: DriftCount Didnt Save Score - by Awankz - 24.12.2013, 14:59
Re: DriftCount Didnt Save Score - by SilentSoul - 24.12.2013, 15:02
Re: DriftCount Didnt Save Score - by Kells - 24.12.2013, 15:07
Re: DriftCount Didnt Save Score - by Awankz - 28.12.2013, 03:28
Re: DriftCount Didnt Save Score - by Tayab - 28.12.2013, 05:34
Re: DriftCount Didnt Save Score - by Awankz - 01.01.2014, 06:44

Forum Jump:


Users browsing this thread: 1 Guest(s)