Multi-language Dialog
#1

how to make a mulit language dialog??

can somone help me please
Reply
#2

What do you mean?

Like a dialog that is in different languages or a dialog that changes languages of a player?
Reply
#3

pawn Код:
enum PlayerStats{
...
PlayerLanguage,
...
};

if(IsPlayerLanguage(playerid, english)) ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");

if(IsPlayerLanguage(playerid, dutch)) ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Vul hier je wachtwoord in:","Login","Beindigl")

IsPlayerLanguage(playerid, lang)
{
    if(lang == 'english') {
        if(PlayerInfo[playerid][PlayerLanguage] == 0) return 1;
    }
    if(lang == 'dutch') {
        if(PlayerInfo[playerid][PlayerLanguage] == 1) return 1;
    }
    return 0;
}
Based on this you could try something ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)