SetTimer problem
#1

Hello everybody, before I start, I want to say "Sorry for my english"

So, I use an old version of sa-mp (such as sa-mp 0.3e, u2-mp 0.3e ), and I faced a problem connected with SetTimer
Here is code:

Код:
forward TestTimer();
public TestTimer()
{
      for(new i; i < MAX_PLAYERS; i++)
     {
          //here's empty ('cause it's test)
     }
      print("1");
      return 1;
}
After that I create timer

Код:
public OnGameModeInit()
{
      //gamemodetext bla... bla... bla...
      SetTimer("TestTimer", 1000, 1); // Here's you can clearly see that timer 1 sec + repeating
}
But I faced with the problem. As you have seen it must print("1"); just one time per second, but it print it twice per second

http://imgur.com/a/3iWNQ <- 1 second it print double "1", but in TestTimer I only print 1.

Heeeelllpppp friends
---------------------------[ OFFTOP ]---------------------------------
Again sorry for my english, but it makes me feel so f***ing cool, that know english a bit, and can speak. I always try to up my skill. )
Reply
#2

Use Y timers.
Reply
#3

Okay, lately I try to use ******'s timer. But maybe sbs have any idea, how to fix it without any other includes?
Reply
#4

OMG, I don't know how, but I fixed it. Thanks everybody :P
Reply
#5

Why aren't you using the latest version of SAMP?
Reply
#6

I'm using samp 0.3e, 0.3z, 0.3.7. Even 0.3e, 0.3z in 2017 have online )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)