View Single Post
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 08-09-2019 , 09:42   Re: Natives can return arrays in PAWN!
Reply With Quote #13

Quote:
Originally Posted by HamletEagle View Post
You still need to "declare a string to use them", otherwise where would the result go?
I think he told about some use cases like we need to create temp variable instead paste function as argument another function.

PHP Code:
new num[6];
num_to_str(1numcharsmax(num));
menu_additem(menu"First"num);

menu_additem(menu"Second"num_to_str2(2)); 
Mistrick is offline