Pomoc sa 2 dialoga

Započeo [IF] mariomako, Jul 04, 2010, 16:27:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ovako imam problem sa 2 dialoga

ocem prvo da izage dialog za izbor jazika pa tada da izage dialog za login

evo kod i neznam kako da to napravim da taj dialog za login izage kad igrac izbere jedan jazik

public OnPlayerConnect(playerid)
{
new file[128];
format(file, sizeof(file), "Admin/Korisnici/%s.ini", PlayerName(playerid));

PlayerInfo[playerid][IP] = 0;
PlayerInfo[playerid][Registered] = 0;
PlayerInfo[playerid][LoggedIn] = 0;
PlayerInfo[playerid][Password] = 0;
PlayerInfo[playerid][Level] = 0;
PlayerInfo[playerid][Jailed] = 0;
PlayerInfo[playerid][Frozen] = 0;
PlayerInfo[playerid][Warnings] = 0;
PlayerInfo[playerid][FailLogins] = 0;
PlayerInfo[playerid][Money] = 0;
PlayerInfo[playerid][Score] = 0;
PlayerInfo[playerid][Spawned] = 0;
PlayerInfo[playerid][Password] = dini_Int(file,"Password");
PlayerInfo[playerid][SafetyAnswer] = dini_Int(file,"SafetyAnswer");
PlayerInfo[playerid][Car] = -1;

ShowPlayerDialog(playerid,5510,DIALOG_STYLE_LIST,"£àçèê - Jezik - Language","Ìàêåäîíñêè\nCroatian\nEnglish","OK","Cancel");
if(UserExists(playerid))
{
ShowPlayerDialog(playerid, LOGIN_DIALOG_INPUT, DIALOG_STYLE_INPUT, "Logiranje", "Napisi svoju lozinku u mijesto za pisanje", "Ulogiraj se", "Odustani");

TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);

SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");

new WelcomeMsg[128];
    format(WelcomeMsg, sizeof(WelcomeMsg), "Dobrodosao nazad %s. Tvoj nick je registriran.", PlayerName(playerid));
        SendClientMessage(playerid, COLOR_LIGHTGREEN, WelcomeMsg);
SendClientMessage(playerid, COLOR_WHITE, "Napisi svoju lozinku u mijesto za pisanje");
SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");

}
else
{
    ShowPlayerDialog(playerid, REGISTER_DIALOG_INPUT ,DIALOG_STYLE_INPUT, "Registracija ", "Upisi svoju zeljenu lozinku.","Registriraj","Odustani");

        SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");

new Welcome[128];
    format(Welcome, sizeof(Welcome), "Dobrodosao na nas server %s. Nisi jos registriran, Stoga ces se sada registrirati.", PlayerName(playerid));
        SendClientMessage(playerid, COLOR_LIGHTGREEN, Welcome);
        SendClientMessage(playerid, COLOR_LIGHTGREEN, "Samo prati objasnjenja.");

        SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");
SendClientMessage(playerid, COLOR_WHITE, "Registracija: Ima 3 koraka registracije: (sada si na: 1)");
SendClientMessage(playerid, COLOR_WHITE, "1. Napisi lozinku - Napisi zeljenu lozinku u polje za pisanje.");
        SendClientMessage(playerid, COLOR_WHITE, "2. Sigurnosno pitanje");
        SendClientMessage(playerid, COLOR_WHITE, "3. Odgovor na sigurnosno pitanje");

        TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
}
return 1;
}