PayDay Bug!
#1

My PayDay is not working correctlyt!
Always after stats restart everything is ok till one moment, idk why!
I think the problem is the database, but it is not!
Then found that by the time the timer stops working, becouse weather didnt change and game time too!
This is the timer which stops working:
Код:
stock Timer()
{
    new newhour,newminute,newsecond;
    gettime(newhour, newminute, newsecond);
    if ((newhour > ghour) || (newhour == 0 && ghour == 23))
    {
        ghour = newhour;
        PayDayTime();
        SetWorldTime(newhour);
    }
}
If anyone have any solutions please help!
Reply
#2

Timer is called by SetTimer(Ex) ?

If yes, should be

forward Timer();
public Timer() {

}
Reply
#3

No, this is different timer~!
Reply
#4

The only problem i can see, is either u're stopping the timer somewhere in the code, or the "ghour" variable is not properly initialized, otherwise the code looks fine to me
Reply
#5

Show us the Timer u are using to initialize the function Timer()
Reply
#6

you mean this ?

Код:
forward SecUpdate();
public SecUpdate()
{
    Timer();
  	HealCheck();
	HealthCheck();
	ArmourCheck();
	//GunsCheck();
	MoneyCheck();
	GzCheck();
	GlobalAfkCheck();
Reply
#7

Everything looks fine unless you kill the timer.
Reply
#8

How could I ?
Reply
#9

Look into your gamemode and see if there's "KillTimer(SecUpdate);" or look at the functions/stocks HealCheck,HealthCheck,ArmourCheck,MoneyCheck,GzChe ck,GlobalAfkCheck and check if they return 1.
If they do ,delete return 1;
Reply
#10

make sure u're not killing the "SecUpdate()" timer somewhere in ur script, show us how u create that timer in the first place
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)