SA-MP Forums Archive
[Include] Timer Fix (seamlessly makes SetTimer very accurate) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Timer Fix (seamlessly makes SetTimer very accurate) (/showthread.php?tid=289675)

Pages: 1 2 3 4


Re: Timer Fix (seamlessly makes SetTimer very accurate) - d0nTtoucH - 21.11.2013

filterscripts\34342342.pwn(765) : fatal error 111: user error: Set your Restart Config before using please!!!!


Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
how to fix this ?


Respuesta: Re: Timer Fix (seamlessly makes SetTimer very accurate) - Malganys - 21.11.2013

Quote:
Originally Posted by Inverse
Посмотреть сообщение
That it does. But then it also fucks up everything on linux. So as long as it doesn't get fixed, I'm going to stick with your include.
You can use TimerFix plugin by Dan..


Re: Timer Fix (seamlessly makes SetTimer very accurate) - vannesenn - 25.05.2014

Slice, I have big problem !

I have this in server.log

And when i login in Server account, game freeze and CPU activity is 60-70 %

Quote:

[18:20:11] (TimerFix) ERROR: The function "Vracanje_Kamere" didn't properly execute, some timers might not have been called.

Code is

Код:
SetTimerHook("Vracanje_Kamere", Spawn[spawn_id][sAnimTrajanje], false, "id", playerid, spawn_id);
Код:
public Vracanje_Kamere(playerid, spawn_id)
{
	new inst_kod[25];
	
    gpci(playerid, inst_kod, 25);

	
	//GASENJE SPAWN ANIMACIJE
	ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);

	SetCameraBehindPlayer(playerid);
	
	Spawn[spawn_id][sEnble] = false;
	
	//UKOLIKO JE PROSLI PUT KRESALO
	if(Korisnik[playerid][pCrashed] == true)
	{
		SetTimerHook("CrashSpawn", 3000, false, "i", playerid);
	}

	//PROVJERA PRVE PRIJAVE
	if(!strcmp(Korisnik[playerid][pGPCI], "none", true))
	{
  		Korisnik[playerid][pGPCI_Kod] = false;
		
		strmid(Korisnik[playerid][pGPCI], inst_kod, 0, strlen(inst_kod), 30);
	
		ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,
		"Prva prijava",""BIJELA"Ovo računalo je zabiljeћeno kao glavno računalo Vaљeg računa.\nUkoliko se netko bude htio prijavit na Vaљ račun s drugog računala, morat će ukucat kod koji će biti poslan na Vaљ e-Mail.\n"ZUTA"Samo korisnici s visokom razinom zaљtite uz Premium Silver.\n"BIJELA"Za viљe pitanja posjetite "SPLAVA""FORUM""BIJELA" ili putem komande "PINK"/report"BIJELA".\n\nUgodnu igru Vam ћeli Haswell RolePlay tim.","OK","");

		SpremiKorisnika(playerid);
	}

	//UKOLIKO GPCI NIJE ISTI KAO KOD KOJI JE ZABILJEZEN KAO GLAVNI
	if(strcmp(Korisnik[playerid][pGPCI], inst_kod, true))
	{
		ShowPlayerDialog(playerid, DIALOG_SECURE_GPCI_QUE, DIALOG_STYLE_MSGBOX, "Sigurnosno pitanje - Računalo", ""BIJELA"Dali je ovo vaљe glavno računalo koje će te stalno\nkoristiti za prijavu na Vaљ korisnički racun?", "Da", "Ne");
	}

	return TogglePlayerControllable(playerid, true);
}
How I can fix this problem?

P.S.: Sorry for my bed English


Re: Timer Fix (seamlessly makes SetTimer very accurate) - iRaiDeN - 25.05.2014

Wow nice, very usaful...


Re: Timer Fix (seamlessly makes SetTimer very accurate) - 0x41726d79 - 26.10.2014

great!


Re: Timer Fix (seamlessly makes SetTimer very accurate) - TitanZ - 23.01.2016

Oh God.
Код HTML:
[14:08:11] [part] Denise5 has left the server (0:2)
[14:08:11] (TimerFix) WARNING: The function "KickHere" took 1081ms to execute! This will affect other timers.
Код HTML:
SetTimerEx("KickHere", 1000, false, "i", playerid);
public KickHere(playerid) {
	Kick(playerid);
	return 1;
}



Re: Timer Fix (seamlessly makes SetTimer very accurate) - Crayder - 23.01.2016

Quote:
Originally Posted by TitanZ
Посмотреть сообщение
Oh God.
Код HTML:
[14:08:11] [part] Denise5 has left the server (0:2)
[14:08:11] (TimerFix) WARNING: The function "KickHere" took 1081ms to execute! This will affect other timers.
Код HTML:
SetTimerEx("KickHere", 1000, false, "i", playerid);
public KickHere(playerid) {
	Kick(playerid);
	return 1;
}
Read the very FIRST line on this entire thread.


Re: Timer Fix (seamlessly makes SetTimer very accurate) - Shravan859 - 05.01.2018

Link is not working


Re: Timer Fix (seamlessly makes SetTimer very accurate) - Geebrox - 15.01.2018

There is a problem while starting the server:
PHP код:
[debugRun time error 19"File or function is not found"
[debug]  IsValidTimer 
The plugin loaded successfully.

Anyone knows how to solve it?


Re: Timer Fix (seamlessly makes SetTimer very accurate) - PepsiCola23 - 28.01.2018

im already using this and its great !


Re: Timer Fix (seamlessly makes SetTimer very accurate) - brayancamaroes - 04.01.2019

Download link of include was hidden?
Код:
http://%2A%2A%2A%2A%2A%2A%2A/a3PJz



Re: Timer Fix (seamlessly makes SetTimer very accurate) - Banditul18 - 04.01.2019

Quote:
Originally Posted by brayancamaroes
Посмотреть сообщение
Download link of include was hidden?
Код:
http://%2A%2A%2A%2A%2A%2A%2A/a3PJz
Was removed. Read the first line in the first post on the first page. It tells you what to use