Speedometer Update faster!
#1

So currently in my script i have a speedo that does not update fast, it updates the speed every 2-3 second. I wanted it to be like every 0.5-1 second. Where should i change this? Is it a timer or something?
Reply
#2

Can you show us some code so we can fix the trouble and then explain it to you ?
Reply
#3

Quote:
Originally Posted by kevannkw
Посмотреть сообщение
Is it a timer or something?
Yes it is

Look after SetTimer or SetTimerEx and there you can do this:

PHP код:
SetTimer("tacho",1000,1); 
//this 1000 = 1000ms = 1sec 
Greekz
Reply
#4

Remember that many timers could cause delays in your server, i would use y_timers to create all the timers in my script.

Quote:
Originally Posted by ******
Посмотреть сообщение
Y_timers:

Not running a timer is always more efficient than running one.
The following code updated its speedometer each 4° of the second.

PHP код:
#include <YSI\y_timers>
task UpdateSpeedo[250]()
{
    foreach(
Playeri)
    {
        if(
speedo[i] != 0// change your var and code..
        
{
            
// bla bla.
        
}
    }
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)