Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Can't return string on functions?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-22-2017 , 23:04   Re: [ H3LP ] Can't return string on functions?
Reply With Quote #3

Because it will return each char in part( like %s = (szName[0] && szName[1] && szName[2] && szName[3] ) it is very poor method to return arrays with natives, you should format or copy the output in a string variable.
PHP Code:
get_user_name2id, const Name[], maxchars=)
{
    
get_user_nameidNamemaxchars );

But is basicly the same, so only if you want to format the name with something special or maybe in other cases, i've answer to you why is not good returning arrays with natives.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
 



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 23:11.


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