Raised This Month: $ Target: $400
 0% 

set task question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 02-06-2013 , 16:08   set task question
Reply With Quote #1

why when i do like this

set_task(1.5, "task", TASK + client , _ , _, "b")

its do it much faster then 1.5????
daniel46 is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 02-06-2013 , 17:05   Re: set task question
Reply With Quote #2

No it is executed after 1.5 seconds.
I really don't get what you mean. Are you asking if the task is executed in a time < 1.5 ?
__________________
n0br41ner is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-06-2013 , 17:20   Re: set task question
Reply With Quote #3

Quote:
Originally Posted by n0br41ner View Post
No it is executed after 1.5 seconds.
I really don't get what you mean. Are you asking if the task is executed in a time < 1.5 ?
how the hell are you gaging 1.5 seconds?

It uses gametime im pretty sure so if you start it at 123.43 it will fire again at 124.93..... so maybe your just seeing the types wrong but it does wait the time given in the first argument...
Doc-Holiday is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 02-06-2013 , 17:43   Re: set task question
Reply With Quote #4

Quote:
Originally Posted by Doc-Holiday View Post
how the hell are you gaging 1.5 seconds?

It uses gametime im pretty sure so if you start it at 123.43 it will fire again at 124.93..... so maybe your just seeing the types wrong but it does wait the time given in the first argument...
I didn't understand what you meant
__________________
n0br41ner is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-06-2013 , 17:48   Re: set task question
Reply With Quote #5

Quote:
Originally Posted by n0br41ner View Post
I didn't understand what you meant
If you set a task for 1.5 seconds

and the time is

14:47: 30 hours

you will see the time after it runs as

14:48:80 hours

but it only looks like a second went by

So im asking you how are you determining that that is calling the function less then every 1.5 seconds

Last edited by Doc-Holiday; 02-06-2013 at 17:48.
Doc-Holiday is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 02-06-2013 , 17:51   Re: set task question
Reply With Quote #6

English is difficult
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 02-06-2013 , 19:44   Re: set task question
Reply With Quote #7

Quote:
Originally Posted by Doc-Holiday View Post
If you set a task for 1.5 seconds

and the time is

14:47: 30 hours

you will see the time after it runs as

14:48:80 hours

but it only looks like a second went by

So im asking you how are you determining that that is calling the function less then every 1.5 seconds
Oh now i see
not a good idea staying awake at 3:00 am
__________________
n0br41ner is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-06-2013 , 21:56   Re: set task question
Reply With Quote #8

Quote:
Originally Posted by Doc-Holiday View Post
how the hell are you gaging 1.5 seconds?

It uses gametime im pretty sure so if you start it at 123.43 it will fire again at 124.93..... so maybe your just seeing the types wrong but it does wait the time given in the first argument...
Why did you quote n0br41ner? He is not the OP and nothing he said is incorrect.
__________________
fysiks is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-06-2013 , 23:48   Re: set task question
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
Why did you quote n0br41ner? He is not the OP and nothing he said is incorrect.
shows what i get for typing from my phone...

i meant to quote the OP i didnt even see nob post when i read it on tapatalk

but my message was to the OP... not nob my bad.

Last edited by Doc-Holiday; 02-06-2013 at 23:49.
Doc-Holiday is offline
hypheni
Senior Member
Join Date: Jul 2011
Location: India
Old 02-07-2013 , 01:20   Re: set task question
Reply With Quote #10

One more question regarding this post.

using _ or 0 as set_task argument means the same ?. ie: passing the argument as NULL
hypheni is offline
Send a message via Skype™ to hypheni
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 20:35.


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