Problem with Timer PayDay
#1

Hi Guys!

I have a big problem with my server. The server running on database(if matter).
The problem is: Time for Payday is blocked, ie not decrease and not coming PayDay.
But strange is because not all the time make that, sometimes work. And not make for all players, just for a few(of 80-100 players, 30 have the problem)


Sometimes when I enter on the server, payday time does not decrease and sometimes work.


Thanks in advance,

Jericho.

Excuse my English
Reply
#2

Hello there it would be easier if you posted the timer part of the script so we can find the problem ^^
Reply
#3

Код:
	    if(CharacterInfo[playerid][active_character[playerid]][cPayTime] > 60)
		{
			format(tmp,sizeof(tmp),"%d mins",(CharacterInfo[playerid][active_character[playerid]][cPayTime] / 60));
		}
		else
		{
            format(tmp,sizeof(tmp),"any second now...");
		}
		if(CharacterInfo[playerid][active_character[playerid]][cHealthInsurance]) { format(tmp3,sizeof(tmp3),"Yes"); } else { format(tmp3,sizeof(tmp3),"No"); }
	    format(str,sizeof(str),"Level:[%d] Exp:[%d/%d] Payday In:[%s] Payday:[$%d] Deaths:[%d] Health Insurance:[%s]",CharacterInfo[playerid][active_character[playerid]][cLevel],CharacterInfo[playerid][active_character[playerid]][cExp],(8 * CharacterInfo[playerid][active_character[playerid]][cLevel]),tmp,(CharacterInfo[playerid][active_character[playerid]][cPayday] + 1000),CharacterInfo[playerid][active_character[playerid]][cDeaths],tmp3);
	    SendClientMessage(playerid,COLOR_WHITE,str);
Reply
#4

No one knows what could be the problem?
Reply
#5

I doubt if you CAN use this like this:
pawn Код:
CharacterInfo[playerid][active_character[playerid]][cPayTime]
So, TRY USING,
pawn Код:
CharacterInfo[playerid][active_character][playerid][cPayTime]
Reply
#6

Don't work

Any solutions?
Reply
#7

I assume it's nothing to do with the PayDay timer and is more to do with the server time. Please double check if your servers time is not set to go quicker than the real time.
Reply
#8

Where can I check this?

Now the server is at 11:18 p.m.
And real time is: 11:19 p.m.
Reply
#9

Well it's 1 minute behind, so I doubt it's something to do which I've said. However, if you've just started up the server, might want to give it sometime and compare both times (servers and real lifes).
Reply
#10

for example, at this time paytime works only just first 20 ID(players) from ID 21 does not work
Reply


Forum Jump:


Users browsing this thread: