udan11 / samp-plugin-timerfix Goto Github PK
View Code? Open in Web Editor NEWHigh accuracy timing events for SA-MP servers.
License: BSD 2-Clause "Simplified" License
High accuracy timing events for SA-MP servers.
License: BSD 2-Clause "Simplified" License
This plugin has very useful functions, but there can be added even more, every thing has its own usage.
native SetTimerInterval(timerid, interval);
native SetTimerCount(timerid, count);
I know we can recreate the timer, but with these would be easier.
Hey guys,
Last week i updated my Windows Server to Version 2016. Unfortunately the SA-MP Server isn't working anymore. Loading of the plugin Timerfix fails. I have no idea what the problem is. .NET Framework 3.5 and 4.6 and all vcredist (x86) are installed from 2005 to 2015. The sad thing ist, that i can't get more Information about the error in the logfile. It only says "Loading plugin: timerfix Failed.". Is there a way to list the dependencies of this dll? Due to the released sourcecode it would also help me if someone can get me a crashcourse in compilling with visual studio, cause I'm getting errors there too.
I've googled now for serveral hours and i don't get any information about this error which is really sad.
Thank you in advance.
Best regarts
Hammer
PAWN-Quellcode
Quellcode bearbeiten
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[20:29:44]
[20:29:44] Server Plugins
[20:29:44] --------------
[20:29:44] Loading plugin: crashdetect
[20:29:44] CrashDetect v4.15.1 is OK.
[20:29:44] Loaded.
[20:29:44] Loading plugin: sql
[20:29:45] >> SQL plugin v2.6 successfully loaded.
[20:29:45] + MySQL support is enabled.
[20:29:45] Loaded.
[20:29:45] Loading plugin: streamer
[20:29:45]
*** Streamer Plugin v2.8 by Incognito loaded ***
[20:29:45] Loaded.
[20:29:45] Loading plugin: SyncHTTP
[20:29:45] SyncHTTP got loaded.
[20:29:45] Loaded.
[20:29:45] Loading plugin: sscanf
[20:29:45]
[20:29:45] ===============================
[20:29:45] sscanf plugin loaded.
[20:29:45] Version: 2.8.1
[20:29:45] (c) 2012 Alex "Y_Less" Cole
[20:29:45] ===============================
[20:29:45] Loaded.
[20:29:45] Loading plugin: socket
[20:29:48] Socket plugin v0.2b loaded.
[20:29:48] Loaded.
[20:29:48] Loading plugin: thread
[20:29:48]
[20:29:48] ______________________________________
[20:29:48] SA:MP Thread plugin v0.1.6 loaded
[20:29:48] ______________________________________
[20:29:48] By: Fro (c) Copyright <TBG> 2009-2011
[20:29:48] ______________________________________
[20:29:48] Loaded.
[20:29:48] Loading plugin: timerfix
[20:29:48] Failed.
[20:29:48] Loaded 7 plugins.
[20:29:49]
[20:29:49] Filterscripts
[20:29:49] ---------------
[20:29:49] Loading filterscript 'ls_elevator.amx'...
[20:29:51] Loading filterscript 'ls_beachside.amx'...
[20:29:51]
[20:29:51] |---------------------------------------------------
[20:29:51] |--- LS BeachSide Filterscript
[20:29:51] |-- Script v1.03
[20:29:51] |-- 19th April 2015
[20:29:51] |---------------------------------------------------
[20:29:51] |-- LS BeachSide Building Elevator created
[20:29:51] |---------------------------------------------------
[20:29:51] Loaded 2 filterscripts.
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] Script[gamemodes/script.amx]: Run time error 19: "File or function is not found"
[20:29:52] Number of vehicle models: 0
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers`
While file property says that timerfix.dll is version 1.5.0.0 the dll does not export the GetActiveTimers native at all. Linux .do package however does export GetActiveTimers.
This is in 1.5 release.
Is it possible to implement a function like this:
SetPlayerTimer(playerid, func[], interval, delay, count)
SetPlayerTimerEx(playerid, func[], interval, delay, count, format[], {Float, _}:...)
The timer is automatically disabled after a player is disconnected from the server. This function would be very useful.
Sorry for my bad english :(
My timerfix.inc has reject by compile reason no effect.
Hello,
When I run server without restart about 7 days then timerfix bug will appear that defined 1000ms timer is changed to likely 1ms timer. (happens all defined timers) - That means I have to restart server often to avoid this bug.
This is serious bug, that needs fix.
Likely same issue: http://forum.sa-mp.com/showpost.php?p=3135680&postcount=58
and more 1 post above this. (another confirmation)
Hello!
I can't find sdk/amx/amx2.h with amx_SetCString, can you include it to git?
Thank you!
When the server is up for more than 24 days, repeating timers get bugged.
After some days using this plugin, all timers speed went up to 10000x...
The fast timer interval bug is still there, this is the first time it happens to me since I have v1.4. I had my server started for ~7 days without restart and the bug didn't appeared, but yesterday night I restarted it and in this morning I saw that there is no player, I checked my phpMyAdmin, and I saw that queries are executed everytime and I didn't knew why, so I got into the server and I saw this:
http://i.imgur.com/N3TuL0e.png
http://i.imgur.com/i19kcpd.png
http://i.imgur.com/jCf9JzL.png
(look in chat)
Also, this is not the only timer running that fast, but all are running that fast, even one timer which should execute at every 30 minutes to optimize all database tables.
I really hope you can do a cleanup of this plugin and find the problem.
Hey, I used to use a code like SetTimerEx("DestroyRamp", 3000, 0, "d d", playerid, Ramp); and it worked fine without the plugin. Now when I use the plugin I can't seem to get this timer to work. I get "[plugin.timerfix] DestroyRamp: Format ' ' is not recognized." in my server console. I tried a few other ways like SetPlayerTimerEx and I just can't seem to get it. Any advice?
Arrays should be followed by a length, which should be specified by i
. However, nothing in the code checks that the correct specifier is used, if one is used at all:
SetTimerEx("Func", 1000, 0, "af", array, unrelatedFloat); // Probably a stupid size as an int.
SetTimerEx("Func", 1000, 0, "a", array); // Not even enough parameters.
SetTimerEx("Func", 1000, 0, "aai", array, array, 4); // Second array is somehow first array's size.
SetTimerEx("Func", 1000, 0, "ai", array, -1); // -1 given straight to "malloc" with no sanity checks.
SetTimerEx("Func", 1000, 0, "ai", array, cellmax); // Same, try allocate 8Gb.
Please add these:
GetActiveTimers
GetTimerFunctionName
IsValidTimer
I'm not sure if I could post it this way here, but probably many people are facing the same issue. A new function called "IsValidTimer" was added to the release in timerfix.inc, but it is not declared in the plugin released in version 15.
The project was created in Visual Studio 2010 and recompiling it is very complicated. Anyway, I compiled the file only for Windows with the "IsValidTimer" fixed and functional. I believe that the source available in the repository already has the problems I encountered during compilation on Windows fixed for Linux, so I only compiled it on Windows.
You can find the download link below.
#if defined _timerfix_included
#endinput
#endif
#define _timerfix_included
#pragma library timerfix
почему-то при использовании плагина, а именно setplayertimerex_ не вызывается если игрок в афк,
после выхода игрок не получает урон установленный setplayerhealth, а все скопленные сообщения sendclientmessage выводятся очень быстро для игрока. то бишь флуд
Well, i reported it before in old versions, but here it go again, happened to me again with the latest version, not sure what can be the reason now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.