Raised This Month: $ Target: $400
 0% 

Random Function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sibox
Member
Join Date: Apr 2009
Location: Bulgaria
Old 11-21-2010 , 13:46   Random Function
Reply With Quote #1

I'm trying to start a random function with this but i can't get it work
Code:
public RandomFunc() {
    new a = random_num(1,3)
    switch(a) {
        case 1:
            { Function1 }
        case 2:
            { Function2 }
        case 3:
            { Function3 }
    }
}
if i try set_task(5.0,RandomFunc) it doesnt do anything? Please help
sibox is offline
Send a message via Skype™ to sibox
 



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 11:19.


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