08.09.2017, 11:47
Try this:
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
PHP код:
SendFormatLangMSG(playerid, color, ro[], en[], va_args<>)
{
new mesaj[128];
switch( PlayerInfo[ playerid ][ pLanguage ] )
{
case 1: va_format(mesaj, sizeof (mesaj), ro, va_start<3>); //Assuming that 1 is romana
case 2: va_format(mesaj, sizeof (mesaj), en, va_start<3>); //And 2 is english
}
SendClientMessage(playerid,color,mesaj);
}
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
