Multy Language - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multy Language (
/showthread.php?tid=608150)
Multy Language -
bobys16 - 28.05.2016
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
Re: Multy Language -
luke49 - 28.05.2016
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(string, sizeof(string), "notification: english language.");
SendClientMessage(playerid, 0xFFFFFF, string);
}
else {
format(string, sizeof(string), "notificaciуn: lengua espaсola");
SendClientMessage(playerid, 0xFFFFFF, string);
}
Re: Multy Language -
Stinged - 28.05.2016
You can either use what the user above me posted, or you can use this:
https://sampforum.blast.hk/showthread.php?tid=570943
Re: Multy Language -
bobys16 - 28.05.2016
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(string, sizeof(string), "notification: english language.");
SendClientMessage(playerid, 0xFFFFFF, string);
}
else {
format(string, sizeof(string), "notificaciуn: lengua espaсola");
SendClientMessage(playerid, 0xFFFFFF, string);
}
|
it say error "Undenfined string"
Re: Multy Language -
luke49 - 28.05.2016
Somewhere before checking:
PHP код:
new string [ 50 ];