Re: Timerfix plugin - A fix for every ttime related issue -
Dan.. - 30.07.2013
Quote:
Originally Posted by Edvin
I have a problem. I have this in my script:
Код:
mytimer[playerid] = SetPlayerTimerEx(playerid, "FunctionName", 990, true, "i", playerid);
And after, in OnDialogResponse i use:
Код:
KillPlayerTimer(mytimer[playerid]);
to kill the repeating process, but i don't know why, the timer aren't getting destroyed. It still repeats... It's a plugin bug, or i did something wrong?
|
Are you sure that mytimer[playerid] isn't overwritten and the reference to the old timer is lost?
Re: Timerfix plugin - A fix for every ttime related issue -
Edvin - 31.07.2013
Quote:
Originally Posted by Dan..
Are you sure that mytimer[playerid] isn't overwritten and the reference to the old timer is lost?
|
Sure!
AW: Timerfix plugin - A fix for every ttime related issue -
Mellnik - 01.08.2013
If I use SetTimer() is this native being redirect through the plugin or do I need to use SetTimer_() ?
Also GetTickCount()?
Re: Timerfix plugin - A fix for every ttime related issue -
Dan.. - 01.08.2013
SetTimer() and GetTickCount() were both replaced.
Re: Timerfix plugin - A fix for every ttime related issue -
Konstantinos - 02.08.2013
I'm using it and it's perfect! Thanks for that.
Quote:
Originally Posted by Dan..
SetTimer() and GetTickCount() were both replaced.
|
Was SetTimerEx replaced too?
AW: Re: Timerfix plugin - A fix for every ttime related issue -
Mellnik - 02.08.2013
Quote:
Originally Posted by _Zeus
I'm using it and it's perfect! Thanks for that.
Was SetTimerEx replaced too?
|
Yes I just looked at his code:
Код:
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx) {
amx_Redirect(amx, "SetTimer", (ucell) Natives::SetTimer, NULL);
amx_Redirect(amx, "SetTimerEx", (ucell) Natives::SetTimerEx, NULL);
amx_Redirect(amx, "KillTimer", (ucell) Natives::KillTimer, NULL);
amx_Redirect(amx, "GetTickCount", (ucell) Natives::GetTickCount, NULL);
return amx_Register(amx, NATIVES, -1);
}
Re: Timerfix plugin - A fix for every ttime related issue -
Konstantinos - 02.08.2013
Alright! Thanks, Mellnik.
AW: Timerfix plugin - A fix for every ttime related issue -
Mellnik - 03.08.2013
When I load v1.3 the server crashes while loading the plugin. v1.2 works fine.
Код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team
[00:01:05]
[00:01:05] Server Plugins
[00:01:05] --------------
[00:01:05] Loading plugin: sscanf.so
[00:01:05]
[00:01:05] ===============================
[00:01:05] sscanf plugin loaded.
[00:01:05] Version: 2.8.1
[00:01:05] © 2012 Alex "******" Cole
[00:01:05] ===============================
[00:01:05] Loaded.
[00:01:05] Loading plugin: irc.so
[00:01:05]
*** IRC Plugin v1.4.3 by Incognito loaded ***
[00:01:05] Loaded.
[00:01:05] Loading plugin: streamer.so
[00:01:05]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[00:01:05] Loaded.
[00:01:05] Loading plugin: timerfix.so
Re: AW: Timerfix plugin - A fix for every ttime related issue -
Dan.. - 04.08.2013
Quote:
Originally Posted by Mellnik
When I load v1.3 the server crashes while loading the plugin. v1.2 works fine.
Код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team
[00:01:05]
[00:01:05] Server Plugins
[00:01:05] --------------
[00:01:05] Loading plugin: sscanf.so
[00:01:05]
[00:01:05] ===============================
[00:01:05] sscanf plugin loaded.
[00:01:05] Version: 2.8.1
[00:01:05] © 2012 Alex "******" Cole
[00:01:05] ===============================
[00:01:05] Loaded.
[00:01:05] Loading plugin: irc.so
[00:01:05]
*** IRC Plugin v1.4.3 by Incognito loaded ***
[00:01:05] Loaded.
[00:01:05] Loading plugin: streamer.so
[00:01:05]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[00:01:05] Loaded.
[00:01:05] Loading plugin: timerfix.so
|
That's odd. I'll recompile and check for missing dependencies.
EDIT: Fixed!
Re: Timerfix plugin - A fix for every ttime related issue -
Konstantinos - 04.08.2013
I think there's an issue with version 1.2 in Linux when repeating parameters is on
true.
In Windows, something I've made is executed every 3 minutes and it goes like that:
pawn Код:
2:20:45 // it was executed
2:23:45 // it was executed
2:26:45 // it was executed
2:29:45 // it was executed
In linux, it goes like that:
pawn Код:
2:20:45 // it was executed
2:23:43 // it was executed
2:26:41 // it was executed
2:29:39 // it was executed
It's been reduced by 2 seconds everytime is repeated.
I'm going to use v1.3 and I'll edit back.
Re: Timerfix plugin - A fix for every ttime related issue -
totar - 04.08.2013
The link is not work (.dll, .so)
Re: Timerfix plugin - A fix for every ttime related issue -
Konstantinos - 04.08.2013
I'd appreciate if you could make the .so file for Linux!
Re: Timerfix plugin - A fix for every ttime related issue -
Dan.. - 04.08.2013
Quote:
Originally Posted by totar
The link is not work (.dll, .so)
|
Fixed.
Quote:
Originally Posted by _Zeus
I'd appreciate if you could make the .so file for Linux!
|
It's there already.
Re: Timerfix plugin - A fix for every ttime related issue -
totar - 04.08.2013
How to replace this?
SetTimerEx("OnPlayerConnectEx", 5000, false, "i", playerid);
SetTimerEx_("OnPlayerConnectEx", 0, 5000, 0, "i", playerid);
Re: Timerfix plugin - A fix for every ttime related issue -
Dan.. - 04.08.2013
You don't have to edit anything. This is a drop-in replacement. All you have to is load it (add to server.cfg).
Re: Timerfix plugin - A fix for every ttime related issue -
totar - 04.08.2013
This SetTimerEx("OnPlayerConnectEx", 5000, false, "i", playerid); freeze the server!
Re: Timerfix plugin - A fix for every ttime related issue -
Dan.. - 05.08.2013
Quote:
Originally Posted by totar
This SetTimerEx("OnPlayerConnectEx", 5000, false, "i", playerid); freeze the server!
|
If you disable this plugin the problem still occurs?
Re: Timerfix plugin - A fix for every ttime related issue -
totar - 05.08.2013
Then the problem is resolved!
Re: Timerfix plugin - A fix for every ttime related issue -
IstuntmanI - 26.07.2014
Quote:
Originally Posted by Typhome
|
Great ! I thought he isn't working on SA:MP anymore.
Waiting now for the binaries.
Re: Timerfix plugin - A fix for every ttime related issue -
kristo - 27.07.2014
https://github.com/udan11/samp-plugin-timerfix/releases