Player Dialog help please
#3

It still isnt working. This is what im doing:

PHP код:

            
case 3874:
            {
                switch(
listitem)
                {
                    case 
0:
                    {
                        
ShowPlayerDialog(playerid3892DIALOG_STYLE_INPUT"Withdraw""How much would you like to withdraw?""Withdraw""Cancel"); //withdraw
                    
}
                    case 
1:
                    {
                        
ShowPlayerDialog(playerid3893DIALOG_STYLE_INPUT"Deposit""How much would you like to deposit?""Deposit""Cancel"); //deposit
                    
}
                }
            }
            case 
3892:
            {
                switch(
listitem)
                {
                    case 
0:
                    {
                        new 
string[256];
                        
format(stringsizeof(string), "You have withdrawed $%s from your bank account"strlen(inputtext));
                        if(
Player[playerid][BankMoney] >= strlen(inputtext))
                        {
                            
GivePlayerMoneyplayeridstrvalinputtext ) );
                              
Player[playerid][Money] += strlen(inputtext);
                            
Player[playerid][BankMoney] = Player[playerid][BankMoney]-strval(inputtext);
                            
SendClientMessage(playeridWHITEstring);
                        }
                        else
                        {
                            
SendClientMessage(playeridWHITE"You dont have that kind of money!");
                        }
                    }
                }
            }
            case 
3893:
            {
                switch(
listitem)
                {
                    case 
0:
                    {
                        new 
string[256];
                        
format(stringsizeof(string), "You have deposited $%s to your bank account"strlen(inputtext));
                        if(
Player[playerid][Money] >= strlen(inputtext))
                        {
                            
Player[playerid][Money] -= strlen(inputtext);
                            
Player[playerid][BankMoney] += strlen(inputtext);
                            
SendClientMessage(playeridWHITEstring);
                        }
                        else
                        {
                            
SendClientMessage(playeridWHITE"You dont have that kind of money!");
                        }
                    }
                }
            } 
But to activate that, I used
PHP код:
ShowPlayerDialog(playerid3874DIALOG_STYLE_LIST"ATM""Withdraw\nDeposit\n""Select""Cancel"); 
The menu does load, but when i type something in into the input, nothing happens.
Reply


Messages In This Thread
Player Dialog help please - by Nuke547 - 26.01.2012, 23:25
Re: Player Dialog help please - by Buzzbomb - 26.01.2012, 23:33
Re: Player Dialog help please - by Nuke547 - 26.01.2012, 23:52
Re: Player Dialog help please - by Buzzbomb - 27.01.2012, 01:01

Forum Jump:


Users browsing this thread: 1 Guest(s)