Little help please?
#6

Hmm.. Let's say your using dini to save all the player info and those things.
Make a variable inside PlayerInfo enumeration ( eg. 'pLanguage').
Than a something like dialog or what you want under OnPlayerConnect() or if you have your own function.
Something like:
pawn Код:
ShowPlayerDialog(playerid, 1,DIALOG_STYLE_LIST, "Choose your language.","English\nEstonian", "Choose","");
And than you need to make some code under OnDialogResponse()
So, when player chooses one of those languages you can save it with dini in his file.

And when he wants to use some command (eg. /help) you will need to make something like:

pawn Код:
COMMAND:help(playerid, params[])
{
    if(PlayerInfo[playerid][pLanguage] == 1)//This is if he choose englis
    {
        //code...
    }
    else if(PlayerInfo[playerid][pLanguage] == 2)//This is if he choose estonian
    {
        //code...
    }
    return 1;
}
This is just rough example.
Reply


Messages In This Thread
Little help please? - by Janek17 - 06.02.2011, 21:27
Re: Little help please? - by xRyder - 06.02.2011, 21:39
Re: Little help please? - by Janek17 - 06.02.2011, 21:40
Re: Little help please? - by -Rebel Son- - 06.02.2011, 21:47
Re: Little help please? - by Janek17 - 06.02.2011, 21:48
Re: Little help please? - by xRyder - 06.02.2011, 21:51
Re: Little help please? - by -Rebel Son- - 06.02.2011, 21:51

Forum Jump:


Users browsing this thread: 2 Guest(s)