This lags .... u_u
#2

pawn Code:
stock SavePlayerStats(playerid)
{
    dini_IntSet(file, "Score", GetPlayerScore(playerid));
    dini_IntSet(file, "Money", GetPlayerMoney(playerid));
    dini_IntSet(file, "level", PlayerInfo[playerid][Level]);
    dini_IntSet(file, "Cold", PlayerInfo[playerid][Cold]);
    dini_IntSet(file, "Hot", PlayerInfo[playerid][Hot]);
    printf("Player id %d has his files saved", playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    SavePlayerStats(playerid);
    return 1;
}
It's enough if you do it like that.
Reply


Messages In This Thread
This lags .... u_u - by blackwave - 15.11.2010, 12:04
Re: This lags .... u_u - by The_Moddler - 15.11.2010, 12:10
Re: This lags .... u_u - by blackwave - 15.11.2010, 12:17
Re: This lags .... u_u - by iggy1 - 15.11.2010, 12:21
Re: This lags .... u_u - by blackwave - 15.11.2010, 12:23
Re: This lags .... u_u - by blackwave - 15.11.2010, 12:28
Re: This lags .... u_u - by Slice - 15.11.2010, 12:35
Re: This lags .... u_u - by The_Moddler - 15.11.2010, 12:58
Re: This lags .... u_u - by Slice - 15.11.2010, 13:01
Re: This lags .... u_u - by The_Moddler - 15.11.2010, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)