Player score
#7

If a player has less than 3600 seconds in total, mod 3 will give 0 so to fix it:
pawn Код:
PlayerInfo[playerid][TotalTime] = (gettime() - gPlayerJoin[playerid]) + PlayerInfo[playerid][TotalTime];

if (PlayerInfo[playerid][TotalTime] >= 3600 && !((PlayerInfo[playerid][TotalTime] / 3600) % 3))
{
    // level up..
}
Reply


Messages In This Thread
Player score - by Tass007 - 22.09.2016, 11:44
Re: Player score - by Shaheen - 22.09.2016, 12:28
Re: Player score - by Marricio - 22.09.2016, 12:38
Re: Player score - by Tass007 - 22.09.2016, 12:45
Re: Player score - by Konstantinos - 22.09.2016, 12:48
Re: Player score - by Tass007 - 22.09.2016, 13:07
Re: Player score - by Konstantinos - 22.09.2016, 13:11
Re: Player score - by StR_MaRy - 22.09.2016, 13:21
Re: Player score - by iLearner - 22.09.2016, 13:50
Re: Player score - by Marricio - 22.09.2016, 14:22

Forum Jump:


Users browsing this thread: 8 Guest(s)