Raised This Month: $ Target: $400
 0% 

Solved Replacing a SayText message with arguments


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-02-2017 , 09:51   Re: Replacing a SayText message with arguments
Reply With Quote #8

You can progresively add them to the message. Something like:
PHP Code:
const baseArguments 2

new argsNum get_msg_args()
if(
argsNum baseArguments)
{
    new 
subStringsNum argsNum baseArguments
    
for(new baseArguments 1<= subStringsNumi++)
    {
        
get_msg_arg_string(isubStringcharsmax(subString))
    }

And replace each %s with the subString value.
__________________

Last edited by HamletEagle; 02-02-2017 at 09:52.
HamletEagle 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 21:03.


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