Raised This Month: $ Target: $400
 0% 

Solved Replacing a SayText message with arguments


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-01-2017 , 14:59   Re: Replacing a SayText message with arguments
Reply With Quote #3

So, how would I format the message acording to the number of substrings? I know that I can find their number with get_msg_args(), but how to add them in the message?

PHP Code:
new szSubString[get_msg_args()][32]
// This is invalid, because it isn't a constant expression

format(szMessagecharsmax(szMessage), "%s"szMessageszSubstring[0], szSubstring[1], ...) // ? 
This has been bugging me for a long time and I still don't have a clue how to do it. I just need the %s parameters to be automatically replaced by the respective substrings.
__________________

Last edited by OciXCrom; 02-01-2017 at 14:59.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 21:03.


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