Salut à tous !
Voilà, je trouve un truc bisard
Mon tableau n'apparait pas :'(
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Langage", "Français\nEnglish", "Choisir", "Quit");
if (dialogid == 3)
{
if(response)// They pressed the first button.
{
switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
{
case 1:// Our dialog!
{
switch(listitem)// Checking which listitem was selected
{
case 0:
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLangue] = 1; // France
format(message,256,"Bienvenue %s sur Fanatik Stunt.\n\nVeuillez créer votre compte en entrant votre mot de passe ci-dessous :", name);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Vous n'êtes pas enregistré",message,"Créer","Quitter");
}
case 1:
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLangue] = 2; // Anglais
format(message,256,"Welcome %s to Fanatik Stunt.\n\nPlease create your account by entering your password below :", name);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT,"You are not registered",message,"Create","Leave");
}
}
}
}
}
}
Ou je me suis trompé svp
Cordialement