SA-MP Forums Archive
Easy bank system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Easy bank system (/showthread.php?tid=321915)



Easy bank system - ArmyOps - 29.02.2012

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]"


Re: Easy bank system - Sufyan - 29.02.2012

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


Re: Easy bank system - ArmyOps - 29.02.2012

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!