Raised This Month: $ Target: $400
 0% 

set_task(0.01, "func", id) question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-05-2011 , 11:02   Re: set_task(0.01, "func", id) question
Reply With Quote #1

The minimal value is 0.1. If you write a value below, like 0.01, 0.1 will be used.
__________________

Last edited by Arkshine; 12-05-2011 at 11:03.
Arkshine is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-05-2011 , 12:05   Re: set_task(0.01, "func", id) question
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
The minimal value is 0.1. If you write a value below, like 0.01, 0.1 will be used.
I didn't know, thank's
__________________
You can do anything you set your mind to, man.

Devil259 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-05-2011 , 12:13   Re: set_task(0.01, "func", id) question
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
The minimal value is 0.1. If you write a value below, like 0.01, 0.1 will be used.
I tested it.
changed the task(0.1
to task(0.01
and that task was lot a faster.
Then i tryed 0.001, this was faster than 0.01
and then 0.00001 that was same.
.Dare Devil. is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 12-05-2011 , 12:23   Re: set_task(0.01, "func", id) question
Reply With Quote #4

Quote:
Originally Posted by .Dare Devil. View Post
I tested it.
changed the task(0.1
to task(0.01
and that task was lot a faster.
Then i tryed 0.001, this was faster than 0.01
and then 0.00001 that was same.
I doubt that you can even see the difference of directly calling it and set_task(0.1...
And no it wasn't faster. The compiler automatically converts it to 0.1 if the number is lower.
Erox902 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode