Milisecond Timer
hey,
is it possible to make a milisecond timer with steps per 50 miliseconds or lower? I just made a 100milisecond step timer and i'm also wondering if this is a correct way to make a timer: PHP Code:
|
Re: Milisecond Timer
Use floats?
-= 0.01 |
Re: Milisecond Timer
what do you mean?
set_task minimum time is 0.1 of a second, changing it to 0.01 will probably crash the server. |
Re: Milisecond Timer
Quote:
If you want something faster than 100ms I think you would need to use a entity based timer. There are many threads about this. There is at least on in the Tutorials section. |
Re: Milisecond Timer
http://forums.alliedmods.net/showthread.php?t=146556
Quote:
|
Re: Milisecond Timer
hmm i havent really worked with entities, so it's hard for me to figure what happens in this plugin.
but isnt this gonna bug when using get_gametime in stead of using a constant value g_iCounter or iCounTime to begin with? (in case of making the timer count up) other then its a countdown timer it looks like somethings not right or i'm missing something, can you pls explain that script a lil so that i know what does what? |
Re: Milisecond Timer
g_iCountdownEntity is our entity id.
Code:
Sorry for bad english :| |
Re: Milisecond Timer
thanks, that helped alot :).
i converted it into a chronometer, its running perfectly timed with my stopwatch PHP Code:
ps: you're english is pretty good :) |
Re: Milisecond Timer
Quote:
|
Re: Milisecond Timer
Quote:
and i've searched for entitie/entity/time/timer/entity based everything i could think of searched in tutorials: nothing searched in amxx section: no tutorials found. Why is my timer not good? its working perfectly though |
| All times are GMT -4. The time now is 05:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.