Raised This Month: $ Target: $400
 0% 

Hold execution for specific time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-22-2012 , 12:40   Re: Hold execution for specific time
Reply With Quote #3

My code:
PHP Code:
    new iSsCount 5
    
new params[1]; params[0] = id
    set_task
(0.3"ssTask"0params1"a"iSsCount
i made this post before figured the above code out. That is what i put, and so far it compiled fine, just have yet to test it. I know that's sub par code concepts, but its the easiest way of doing it for right now. Later i'll be fixing it up to be less retarded. I just wanted everything easily editable. at the top of my function. Few minutes i'll edit and report.

[EDIT] it works!! apparently i CAN figure things out.....anyone looking for answers in this thread...please note:

PHP Code:
 new params[] = {id
WILL NOT work in this case. something about it needing to be a constant expression. i'd assume it doesn't trust the programmer to be able to NOT change a variable and care that it'll be wrong later after it passes the value. but i'm sure someone with a little more experience could add to that, if they care enough.

Last edited by Liverwiz; 04-22-2012 at 12:56.
Liverwiz is offline
 



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 07:42.


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