Raised This Month: $ Target: $400
 0% 

Returning string by reference


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
orglee
Member
Join Date: Dec 2005
Old 06-05-2009 , 19:44   Returning string by reference
Reply With Quote #1

How can I make a function set an argument passed to it to string?
Code:
function ReturnString(arg_1, &arg_2) { arg_2 = "some string" }
I'm calling function from other plugin using callfunc_* and after I've read over 20 topics it seems thats the only way to return a string.

Unfortunately that implementation gives me an error "Error: Must be assigned to an array on line 218" So I think the main question is... how to force type to String / Array on argument passed to function.
orglee 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 13:47.


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