View Single Post
Cruze
Veteran Member
Join Date: May 2017
Old 08-19-2022 , 05:04   Re: Translation in a timer action possible?
Reply With Quote #5

Plugin:
PHP Code:
public Action Timer_TEST(Handle timer)
{
    for(
int client 1client <= MaxClientsclient++)
    {
        if(
IsClientInGame(client) && !IsFakeClient(client))
        {
            
CPrintToChat(client"%T""translation_message"clientclient);
        }
    }    

Translation file:
PHP Code:
"Phrases"
{
    
"translation_message"
    
{
        
"#format"        "{1:N}"
        "en"            "This is translated message for {1}."
    
}

__________________
Taking paid private requests! Contact me

Last edited by Cruze; 08-19-2022 at 05:05.
Cruze is offline