I can't use Thai language -
boynumber5 - 13.07.2009
My code
new string[256];
format(string, sizeof(string),"
Your Current Account Is %d ",PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid,COLOR_GREEN,string);
Red Mark , I want to Use Thai Language. But When I use thai language, it will been like this [][][][][]ค[][][][][]ณ[][][][][]มี][][]เ[][]ง[][][]น .
Sorry for my so bad english ,Help Me please
Re: I can't use Thai language -
woot - 13.07.2009
Theres no fix for that afaik.
Re: I can't use Thai language -
boynumber5 - 13.07.2009
My Full code
public OnPlayerSelectedMenuRow(playerid, row)
{
new string[256];
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == atmmenu)
{
switch(row)
{
case 0: //Withdraw ¶Н№
{
SendClientMessage(playerid,COLOR_GREEN,"¤Шідґйа»Фґ ·УГТВЎТГЎТГ¶Н№а§Ф№г№єС*ЄХ");
SendClientMessage(playerid,COLOR_GREEN,"ЎГШіТаЕЧНЎ ЁУ№З№а§Ф№ 1000 ЛГЧН 5000 ЛГЧН 10000 ЛГЧН 100000");
if( !IsValidMenu( withdrawmenu ))
{
withdrawmenu = CreateMenu("WithdrawMenu", 2, 250, 100, 100, 100);
if( _:withdrawmenu == INVALID_MENU )
{
return 1;
}
AddMenuItem( withdrawmenu, 0, "1000"); // 0
AddMenuItem( withdrawmenu, 0, "5000"); // 1
AddMenuItem( withdrawmenu, 0, "10000"); // 2
AddMenuItem( withdrawmenu, 0, "100000"); // 3
AddMenuItem( withdrawmenu, 0, "Exit"); // 4
}
if( _:withdrawmenu != INVALID_MENU )
{
ShowMenuForPlayer( withdrawmenu, playerid );
return 1;
}
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"¤Шідґйа»Фґ ·УГТВЎТГЅТЎа§Ф№єС*ЄХ");
SendClientMessage(playerid,COLOR_GREEN,"ЎГШіТаЕЧНЎ ЁУ№З№а§Ф№ 1000 ЛГЧН 5000 ЛГЧН 10000 ЛГЧН 100000");
if(!IsValidMenu(bankmenu))
{
bankmenu = CreateMenu("DepositMenu",2, 250, 100, 100, 100);
if(_:bankmenu == INVALID_MENU)
{
return 1;
}
AddMenuItem(bankmenu,0, "1000");// 0
AddMenuItem(bankmenu,0, "5000");// 1
AddMenuItem(bankmenu,0, "10000");// 2
AddMenuItem(bankmenu,0, "100000");// 3
AddMenuItem(bankmenu,0, "Exit");// 4
}
if(_:bankmenu != INVALID_MENU)
{
ShowMenuForPlayer(bankmenu,playerid);
return 1;
}
}
case 2: //Check Ballance
{
format(string, sizeof(string),"Your Current Account %d ",PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid,COLOR_GREEN,string);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"ўНє¤Ші КУЛГСєЎТГгЄйєГФЎТГAtmService¤ГСє");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"¤ШіаКХ В¤иТёГГБа№ХВБЎТГгЄйєГФЎТГ $50");
SafeGivePlayerMoney(playerid, -50);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
}
case 3: // Exit
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"ўНє¤Ші КУЛГСєЎТГгЄйєГФЎТГAtmService¤ГСє");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"¤ШіаКХ В¤иТёГГБа№ХВБЎТГгЄйєГФЎТГ $50");
SafeGivePlayerMoney(playerid, -50);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
}
}
}
,"¤Шідґйа»Фґ·УГТВЎТГЎТГ¶Н№а§Ф№г№єС*ЄХ Is Thai Language But I can't use in format(string,sizeof(string)," ");
Re: I can't use Thai language -
abhinavdabral - 13.07.2009
SAMP doent supports this language i guess...as I cant use Hindi in my server....so you better search a plugin for it .... Or just simply use English in your server....
Thank You
-Abhinav
Re: I can't use Thai language -
boynumber5 - 13.07.2009
format(string, sizeof(string), " ВНґа§Ф№г№єС*ЄХ: $%d", account);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), " НСµГТґНЎаєХйВ: 0.%d percent",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " ґНЎаєХйВ·ХдґйГСє $%d", interest);
This is script In public payday() it can use thai language , but i don't understand, why i can't use thai language in other public
Re: I can't use Thai language -
abhinavdabral - 13.07.2009
Try adding format statement like you have added in the above one ..before all the SendClientMessage
Might be it would fix it.
Thank You
-Abhinav