[Pomoc]Dialog

Započeo :::... Master ...:::, Maj 26, 2012, 18:03:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja iz 0
Detaljan opis problema: Pa sad imam napraveno dialog za bankomat i kad ukucam neku komandu sa dialog prefrlja se na taj dialog za bankomate? A kad izbrisem taj dialog za bankomate problem nestane sve si radi ok, ama mene potreban mi e dialog za bankomate!Pa ko moze pomoci, nek pomogne...
Dio skripte: Evo dialog od bankomat

if(dialogid == 667)//podizanje para sa bankomata
{
    if(response)
    {
    if(listitem == 0)
{
            ShowPlayerDialog(playerid,668,DIALOG_STYLE_INPUT,"Bankomat"," Kolku pari sakate da izvadite od bankomat?","Izvadi","Otkazi");
        }
            }
    }
    if(listitem == 1)
{
ShowPlayerDialog(playerid,669,DIALOG_STYLE_INPUT,"Bankomat"," Kolku pari sakate da stavite vo bankomat?","Stavi","Otkazi");
        }
        if(listitem == 2)
{
        format(string, sizeof(string), "{FF0000}INFO:{FFFFFF}Imate $%d na vasata smetka.", PlayerInfo[playerid][pBanaccount]);
        SendClientMessage(playerid, COLOR_WHITE, string);
        }
    if(response)
    {
if(dialogid == 668)
{
new cashdeposit = strval(inputtext);
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate tolku");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo[playerid][pBanaccount];
PlayerInfo[playerid][pBanaccount]=cashdeposit+PlayerInfo[playerid][pBanaccount];
SendClientMessage(playerid, COLOR_WHITE, "|___ Bankomat ___|");
format(string, sizeof(string), "  Stara smetka: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), "  Vneseno: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), "  Nova smetka: $%d", PlayerInfo[playerid][pBanaccount]);
SendClientMessage(playerid, COLOR_WHITE, string);
OnPlayerUpdate(playerid);
return 1;
}
}
if(response)
{
if(dialogid == 669)
{
            new cashdeposit = strval(inputtext);
if (cashdeposit > PlayerInfo[playerid][pBanaccount] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate tolku !");
return 1;
}
    ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pBanaccount]=PlayerInfo[playerid][pBanaccount]-cashdeposit;
format(string, sizeof(string), " ** Imate izvadeno $%d od vasata smetka,Ostanato: $%d ", cashdeposit,PlayerInfo[playerid][pBanaccount]);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
}

Imas jos jedan dialog isti ID
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info