Multy Language
#1

Hello , im searching 2 day for search an language system .
but i found null , all include / tutorial i found is not worked for Me .

can somebody helpp?
any help will be appreciate

Help this newbie.
Thanks
Reply
#2

PHP код:
//create new variable
new Lang [MAX_PLAYERS]; 
PHP код:
//somewhere set player language
Lang[playerid] = 1//you can set 0, 5, 3 and etc. 
PHP код:
//check what language and do smth
if(Lang[playerid] == 1) {
    
format(stringsizeof(string), "notification: english language.");
    
SendClientMessage(playerid0xFFFFFFstring);
}
else {
    
format(stringsizeof(string), "notificaciуn: lengua espaсola");
    
SendClientMessage(playerid0xFFFFFFstring);

Reply
#3

You can either use what the user above me posted, or you can use this:
https://sampforum.blast.hk/showthread.php?tid=570943
Reply
#4

Quote:
Originally Posted by luke49
Посмотреть сообщение
PHP код:
//create new variable
new Lang [MAX_PLAYERS]; 
PHP код:
//somewhere set player language
Lang[playerid] = 1//you can set 0, 5, 3 and etc. 
PHP код:
//check what language and do smth
if(Lang[playerid] == 1) {
    
format(stringsizeof(string), "notification: english language.");
    
SendClientMessage(playerid0xFFFFFFstring);
}
else {
    
format(stringsizeof(string), "notificaciуn: lengua espaсola");
    
SendClientMessage(playerid0xFFFFFFstring);

it say error "Undenfined string"
Reply
#5

Somewhere before checking:
PHP код:
new string 50 ]; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)