View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-15-2019 , 21:30   Re: multilang message
Reply With Quote #15

You combine this

Quote:
Originally Posted by iceeedr View Post
PHP Code:
new TranslatedMessage[164]
    
formatex(TranslatedMessagecharsmax(TranslatedMessage), "%L"LANG_PLAYER"yourmessagename"szUserName szAuthID
and this
Quote:
Originally Posted by OciXCrom View Post
You would use the player's index instead of LANG_PLAYER.
(though you'd need to change "TranslatedMessage" to "szMessage" if you want it to fit into the exiting code)

Don't make things hard on yourself by trying to add color into it before you get the multi-lingual stuff working. Once you get this working you can easily replace the message_begin/message_end part with any custom client_print() like color chat.
__________________
fysiks is offline