dialog messed?
#9

pawn Код:
if(dialogid == 12)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(PlayerData[playerid][Bank] < 0)
                {
                    format(str,sizeof(str),"Choose the amount you want to withdraw from your bank account\nYou have {FF0000}$%d {FFFFFF}in your bank account",PlayerData[playerid][Bank]);
                    ShowPlayerDialog(playerid,13,DIALOG_STYLE_INPUT,"Withdraw",str,"Withdraw","Back");
                }
                if(PlayerData[playerid][Bank] > 0)
                {
                    format(str,sizeof(str),"Choose the amount you want to withdraw from your bank account\nYou have {2BD600}$%d {FFFFFF}in your bank account",PlayerData[playerid][Bank]);
                    ShowPlayerDialog(playerid,13,DIALOG_STYLE_INPUT,"Withdraw",str,"Withdraw","Back");
                }
            }
            if(listitem == 1)
            {
                if(PlayerData[playerid][Bank] < 0)
                {
                    format(str,sizeof(str),"Choose the amount you want to deposit to your bank account\nYou have {FF0000}$%d {FFFFFF}in your bank account",PlayerData[playerid][Bank]);
                    ShowPlayerDialog(playerid,14,DIALOG_STYLE_INPUT,"Deposit",str,"Deposit","Back");
                }
                if(PlayerData[playerid][Bank] > 0)
                {
                    format(str,sizeof(str),"Choose the amount you want to deposit to your bank account\nYou have {2BD600}$%d {FFFFFF}in your bank account",PlayerData[playerid][Bank]);
                    ShowPlayerDialog(playerid,14,DIALOG_STYLE_INPUT,"Deposit",str,"Deposit","Back");
                }
            }
            if(listitem == 2)
            {
                if(PlayerData[playerid][Bank] < 0)
                {
                    format(str,sizeof(str),"Your balance in your bank account is {FF0000}$%d",PlayerData[playerid][Bank]);
                    SendClientMessage(playerid,Niceyellow,str);
                    ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"Bank","Withdraw\nDeposit\nBalance\nTransfer","Open","Close");
                }
                if(PlayerData[playerid][Bank] > 0)
                {
                    format(str,sizeof(str),"Your balance in your bank account is {2BD600}$%d",PlayerData[playerid][Bank]);
                    SendClientMessage(playerid,Niceyellow,str);
                    ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"Bank","Withdraw\nDeposit\nBalance\nTransfer","Open","Close");
                }
            }
            if(listitem == 3)
            {
                if(PlayerData[playerid][Bank] < 0)
                {
                    format(str,sizeof(str),"You got {FF0000}$%d {FFFFFF}in your bank account\nEnter the name of the player you want to give your cash to",PlayerData[playerid][Bank]);
                    ShowPlayerDialog(playerid,15,DIALOG_STYLE_INPUT,"Transfer",str,"Transfer","Back");
                }
                if(PlayerData[playerid][Bank] > 0)
                {
                    format(str,sizeof(str),"You got {2BD600}$%d {FFFFFF}in your bank account\nEnter the name of the player you want to give your cash to",PlayerData[playerid][Bank]);
                    ShowPlayerDialog(playerid,15,DIALOG_STYLE_INPUT,"Transfer",str,"Transfer","Back");
                }
            }
        }
        return 1;
    }
Thats the code for the checkpoint dialog
Reply


Messages In This Thread
dialog messed? - by Tanush123 - 03.01.2012, 16:13
Re: dialog messed? - by Wesley221 - 03.01.2012, 16:15
Re: dialog messed? - by Tanush123 - 03.01.2012, 16:17
Re: dialog messed? - by Wesley221 - 03.01.2012, 16:18
Re: dialog messed? - by Tanush123 - 03.01.2012, 16:26
Re: dialog messed? - by Wesley221 - 03.01.2012, 16:27
Re: dialog messed? - by Tanush123 - 03.01.2012, 20:40
Re: dialog messed? - by geerdinho8 - 03.01.2012, 21:35
Re: dialog messed? - by Tanush123 - 04.01.2012, 03:05
Re: dialog messed? - by Ballu Miaa - 04.01.2012, 03:17

Forum Jump:


Users browsing this thread: 1 Guest(s)