Giter VIP home page Giter VIP logo

samp-plugin-timerfix's People

Contributors

thomas14 avatar udan11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

samp-plugin-timerfix's Issues

New functions ?

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.

Windows Server 2016 and timerfix plugin

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`

SetPlayerTimer

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 :(

timerfix serious bug

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)

Compilation

Hello!
I can't find sdk/amx/amx2.h with amx_SetCString, can you include it to git?
Thank you!

Timers speed

After some days using this plugin, all timers speed went up to 10000x...

Timer interval bug still there

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'm not using SetTimerInterval at all in my gamemode, so it's not a problem on my side. All is fine in my script.

I really hope you can do a cleanup of this plugin and find the problem.

SetTimerEx with more than one parameter

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?

Array lengths not checked in any way

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.

GetActiveTimers

Please add these:

GetActiveTimers
GetTimerFunctionName
IsValidTimer

  • i have a questoion: with this plugin "a" "s" will work in SetTimerEx?

v.15 fixed "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.

timerfix.zip

Add include guards

#if defined _timerfix_included
	#endinput
#endif
#define _timerfix_included
#pragma library timerfix

setplayerhealth + sendclientmessage

почему-то при использовании плагина, а именно setplayertimerex_ не вызывается если игрок в афк,
после выхода игрок не получает урон установленный setplayerhealth, а все скопленные сообщения sendclientmessage выводятся очень быстро для игрока. то бишь флуд

speeding up timers ( overflow )

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.