Multi-language Dialog - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Multi-language Dialog (
/showthread.php?tid=164033)
Multi-language Dialog -
admine - 29.07.2010
how to make a mulit language dialog??
can somone help me please
Re: Multi-language Dialog -
ScottCFR - 29.07.2010
What do you mean?
Like a dialog that is in different languages or a dialog that changes languages of a player?
Re: Multi-language Dialog -
Mujib - 29.07.2010
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 ^^