Raised This Month: $ Target: $400
 0% 

pass origin through functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-06-2009 , 12:27   Re: pass origin through functions
Reply With Quote #5

Quote:
Originally Posted by stupok View Post
That's the line you should show us, then.
I did explain the code I had, it's not that hard to imagine a fricken set_task =), ok LOOK:

Code:
public function(id)
{
       static origin[3]
       get_user_origin(id, origin)
 
       set_task(1.0, "do_something", origin)
}
 
public do_something(origin[3])
{
        /* blablabla spawn something at origin */
}
the error:
test.sma(15) : error 035: argument type mismatch (argument 3)
(line 15 is the set_task)

PS: like I said, I found another method to do this, but just to know how it's made in case I need to send an array via set_task() or something...
__________________
Hunter-Digital 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 08:55.


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