Raised This Month: $ Target: $400
 0% 

Return vector from forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
N1ghtmr1
Member
Join Date: Nov 2005
Old 07-06-2006 , 11:37   Re: Return vector from forward
Reply With Quote #1

"If not you'll just have to pass each cell of the vector as one parameter."

Yeah that was my "bad" solution, but it would be ok if i could pass a non fixed number of arguments to the function. Is infinite arguments supported by pawn? Like

public name(id,a....., numofarg)

or something similiar.

Last edited by N1ghtmr1; 07-06-2006 at 11:42.
N1ghtmr1 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-06-2006 , 12:02   Re: Return vector from forward
Reply With Quote #2

Quote:
Originally Posted by N1ghtmr1
"If not you'll just have to pass each cell of the vector as one parameter."

Yeah that was my "bad" solution, but it would be ok if i could pass a non fixed number of arguments to the function. Is infinite arguments supported by pawn? Like

public name(id,a....., numofarg)

or something similiar.
yes:

Code:
whatever(id,some_string[],{Float,Sql,Result,_}:...)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
N1ghtmr1
Member
Join Date: Nov 2005
Old 07-06-2006 , 12:05   Re: Return vector from forward
Reply With Quote #3

OK, thanks alot for your help

Another thing, I noticed that pawn always pass vectors as reference, is this correct?
N1ghtmr1 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-06-2006 , 13:09   Re: Return vector from forward
Reply With Quote #4

Quote:
Originally Posted by N1ghtmr1
OK, thanks alot for your help

Another thing, I noticed that pawn always pass vectors as reference, is this correct?
I think it does for any array in general.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 07:55.


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