SendFormatMessage in language
#2

Try this:
PHP код:
SendFormatLangMSG(playeridcolorro[], en[], va_args<>)
{
        new 
mesaj[128];
    switch( 
PlayerInfoplayerid ][ pLanguage ] )
    {
        case 
1va_format(mesajsizeof (mesaj), rova_start<3>); //Assuming that 1 is romana
        
case 2va_format(mesajsizeof (mesaj), enva_start<3>); //And 2 is english
        
}
    
SendClientMessage(playerid,color,mesaj);

PS: Don't use stock ussualy , because it is not a keyword for "function"
Or in romana:
Nu folosi stock pentru ca el inseamna de fapt "ignora aceasta <chestie> daca nu e folosita" (unde <chestie> poate fi functie sau variabila). La fel si const care inseamna "nu lasa nimic sa modifice variabila asta"

PS2: You can use y_text and y_languages from YSI, a tut can be found here: https://sampforum.blast.hk/showthread.php?tid=570943
Reply


Messages In This Thread
SendFormatMessage in language - by None1337 - 08.09.2017, 11:18
Re: SendFormatMessage in language - by 10MIN - 08.09.2017, 11:47
Re: SendFormatMessage in language - by Paulice - 08.09.2017, 12:13
Re: SendFormatMessage in language - by 10MIN - 08.09.2017, 12:34
Re: SendFormatMessage in language - by None1337 - 08.09.2017, 12:40
Re: SendFormatMessage in language - by None1337 - 08.09.2017, 14:23
Re: SendFormatMessage in language - by None1337 - 08.09.2017, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)