Raised This Month: $ Target: $400
 0% 

More Help With Functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 04-08-2006 , 09:20  
Reply With Quote #2

You can't use "switch" for the name of your function because it's Pawn's "reserved word".

Quote:
Originally Posted by Pawn "The Language" guide
Arguments that occupy a single cell can be passed by value or by reference.
The default is "pass by value".
To create a function argument that is passed by reference, prefix the argument name with the character &.

Example:
Code:
swap(&a, &b) {     new temp = b     b = a     a = temp }
VEN 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 16:44.


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