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)," ");