Raised This Month: $ Target: $400
 0% 

set_task help needed [Resolved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-02-2007 , 00:43   set_task help needed [Resolved]
Reply With Quote #1

The set_task function isnt working at all, anyone know why???

Code:
        case 2: 
        {    
            sec = 5
            set_user_noclip(id, 1)
            
            
            set_task(1.0, "set_noclip", id,"",20,"a",6)
            
        }
        
    }
}
public set_noclip(id)
{
    sec--
    set_hudmessage(rand2, rand3, rand4, 0.45, 0.5, 0, 6.0, 0.7)
    show_hudmessage(id, "%d/5 seconds of noclip", sec)
    if (sec==0)
    {
        set_user_noclip(id, 0)
    }
}
Please help.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."

Last edited by soccdoodcss; 01-02-2007 at 14:46.
soccdoodcss is offline
Send a message via AIM to soccdoodcss
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 01-02-2007 , 01:17   Re: set_task help needed
Reply With Quote #2

post rest of code, it might be public set_noclip code thats not working right. set_task looks fine from a flance, but then again, you can try set_task(1.0, "set_noclip", id) as a test
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-02-2007 , 01:27   Re: set_task help needed
Reply With Quote #3

Since you specify a length for the "parameter" argument (in this case, 20), AMXX looks for the function differently. Since you aren't even using the "parameter" argument, set the length to 0.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-02-2007 , 12:45   Re: set_task help needed
Reply With Quote #4

Dude, thanks a shitload. I spent almost an hour yesterday trying to figure out how the hell to do it...
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Reply


Thread Tools
Display Modes

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 22:21.


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