Easy bank system
#1

How i make it with dialogs? if il choose "Deposite" from DIALOG_STYLE_LIST i gete response like:

pawn Код:
if(listitem == 0)
            {
                if(!strlen(inputtext) || strlen(inputtext) > 20)
                {
                    new string[128];
                    format(string, sizeof string, ""Green"Set the amount in the input field\nand hit 'Compleate' to finish!");
                    ShowPlayerDialog(playerid, DIALOG_BANK, DIALOG_STYLE_INPUT, ""Green"Withdraw your money", string, "Compleate", "Cancel");
                }
                else if(strlen(inputtext) > 0 && strlen(inputtext) < 20)
                {
                    SendClientMessage(playerid, COLOR_RED, "You didn't enter a value or it's too hight");
                }
               
            }
Thats how it looks atm, but on some reason it says "You didn't enter a value or it's too hight" if il choose "Deposite"
but how i can make it like typing amount and money gets to "PlayerInfo[playerid][pBank]" from "PlayerInfo[playerid][pCash]"
Reply


Messages In This Thread
Easy bank system - by ArmyOps - 29.02.2012, 00:03
Re: Easy bank system - by Sufyan - 29.02.2012, 00:33
Re: Easy bank system - by ArmyOps - 29.02.2012, 00:52

Forum Jump:


Users browsing this thread: 1 Guest(s)