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
#2

See This
https://sampforum.blast.hk/showthread.php?tid=317112
it's Easy Bank System what i made :P
Reply
#3

Ok tnx, im gonna check it. Only now i need to figure it out, how it works, cuz i dont want to use any FS'ts in my script.

Edit: Nice it works +Rep for helping!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)