Strange problem
#1

Hello everyone, I've noticed some weird things in my chatlogs I'll display it for better understanding.

This is what comes up in the logs:

Код:
[31/05/2017 15:21:24]  leveled up (level 282)
It looks like it levels up an ID that is not connected, I kill the timers upon disconnect. There are more of these random level up logs, I just can't find the source of it.

And this is the code:

pawn Код:
forward UpdatePlayer(playerid);
public UpdatePlayer(playerid)
{
    if(!IsPlayerConnected(playerid)) return 1;
    UpdateBars(playerid);
    UpdatePlayingTime(playerid);
    if(PlayerInfo[playerid][pExp] >= 100)
    {
        new string[128];
        PlayerInfo[playerid][pExp] = 0;
        PlayerInfo[playerid][pLevel] ++;
        SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
        SetProgressBarValue(Exp[playerid], 0);
        UpdateProgressBar(Exp[playerid], playerid);
        SendClientMessage(playerid, COLOR_ORANGE, "** {FFFFFF}Congratulations, you leveled up!{FF8000} **");
        format(string, sizeof(string), "%s leveled up (level %d)", GPN(playerid), PlayerInfo[playerid][pLevel]);
        ChatLog(string, "chatlog.txt");
    }
    return 1;
}
Reply


Messages In This Thread
Strange problem - by TonyII - 31.05.2017, 14:35
Re: Strange problem - by Toroi - 31.05.2017, 14:51
Re: Strange problem - by TonyII - 31.05.2017, 16:07
Re: Strange problem - by CheezIt - 31.05.2017, 18:39
Re: Strange problem - by Toroi - 31.05.2017, 18:41
Re: Strange problem - by CheezIt - 31.05.2017, 18:46
Re: Strange problem - by TonyII - 31.05.2017, 20:14
Re: Strange problem - by CheezIt - 01.06.2017, 00:04
Re: Strange problem - by ShihabSoft - 01.06.2017, 00:08
Re: Strange problem - by CheezIt - 01.06.2017, 04:49

Forum Jump:


Users browsing this thread: 1 Guest(s)