Closed IstuntmanI closed 10 years ago
A new idea: what about SetTimerIntervalLeft ? (we already have a Get function)
Hi, @IstuntmanI,
I have no plans of continuing the development of this plugin or anything related to SA-MP. If you'd like, you can fork it and implement it by yourself. It shouldn't be hard and you can peak at other methods that do the same thing.
The new method should look like this:
cell AMX_NATIVE_CALL Natives::SetTimerIntervalLeft(AMX *amx, cell *params)
{
if (params[0] < 2 * CELL_SIZE)
{
return 0;
}
int id = params[1], interval = params[2];
if (TimerExists(id))
{
timers[id]->next = GetMsTime() + interval;
}
return 1;
}
Ugh, sucks to hear that. I will see what I can do. (I can't really compile for linux)
I am sure you can find a way to compile for Linux if you really want to.
If you don't want to install it on your computer or run a virtual machine, you can rent a VPS or use one of those online IDEs (e.g. Cloud9 or Koding) that provide a free virtual machine with enough resources to compile this plugin.
Though, I am not sure about testing (if you can actually run a SA-MP server on any of these servers).
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.