SA-MP Forums Archive
Timer Problem - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer Problem (/showthread.php?tid=361727)



Timer Problem - Danyal - 22.07.2012

pawn Код:
#include <timerfix> //---- By Slice ----//

forward ANGLE_UPDATE();

public OnFilterScriptInit()
{
    SetTimer("ANGLE_UPDATE" , 700, true);
    return 1;
}

public ANGLE_UPDATE()
{
    for(new g=0;g<MAX_PLAYERS;g++)
    {
        new Float:x, Float:y, Float:z;
        if(IsPlayerInAnyVehicle(g))
        {
            GetVehiclePos(GetPlayerVehicleID(g), x, y, z);
        }
        else GetPlayerPos(g, x, y, z);
        ppos[g][0] = x;
        ppos[g][1] = y;
        ppos[g][2] = z;
    }
}
DEBUG REPORT
Код:
[06:54:44] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:44] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:44] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:45] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:45] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:46] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:46] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:46] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:46] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:47] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:47] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:48] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:48] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:48] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:48] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:49] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:49] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:50] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:50] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
[06:54:51] (TimerFix) DEBUG: Calling: AngleUpdate()
[06:54:51] (TimerFix) ERROR: The function "AngleUpdate" didn't properly execute, some timers might not have been called.
How to fix that issue?


Re: Timer Problem - Danyal - 24.07.2012

help me please i really need this to work.....


Re: Timer Problem - SuperViper - 24.07.2012

Remove timerfix and see if it works.


Re: Timer Problem - Devilxz97 - 24.07.2012

Quote:
Originally Posted by Danyal
Посмотреть сообщение
help me please i really need this to work.....
OMG is that u danyal from dgz ? ,its meh ! Devilxz
okay , try remove the timerfix like superviper say..


Re: Timer Problem - Danyal - 24.07.2012

i already tried to do that by removing the timer fix by slice and it works fine but the problem is why this function isnt properly executed this function got nothing much it only get player position thats it.


i am runing 3 timer along this they all execute perfectly leaving this one...


Re: Timer Problem - HDFord - 24.07.2012

Removing the include should work. But proberbly not so maybe just try to forward ANGEL_UPDATE(playerid); instead of using that advanced unnesseserry stuff. You just need to loop trough the players. Just a suggestion.


Re: Timer Problem - Danyal - 24.07.2012

i need that angle update to be called again n agin thats why i m using timer without timer it cant be done


Re: Timer Problem - Chenko - 25.07.2012

Nevermind


Re: Timer Problem - Danyal - 25.07.2012

anyone else help please


Re: Timer Problem - namespace - 26.07.2012

why u using some timerfix? just do regular timer.. dont listen to it... and also u might want to do if(!isplayerconnect(g))continue;