Raised This Month: $ Target: $400
 0% 

set_task help ! (passing arguments to a function)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2009 , 18:42   Re: set_task help ! (passing arguments to a function)
Reply With Quote #1

Like this I believe (off the top of my head):

PHP Code:
new param[1]
param[0] = number
set_task
(fTime"cmdFunction"idparamsizeof(param))

public 
cmdFunction(idthisparam[])
{
    
number thisparam[0]
    
    
// Stuff here.

Or, depending on what you are using it for, you might be able to use a global variable.
__________________

Last edited by fysiks; 10-30-2009 at 18:49.
fysiks 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 17:36.


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