saving into file... help please.
#1

Hey... I've made this..:

pawn Код:
if(dialogid == BANKCREATE)
    {
        if(response)
        {
            if(!IsNumeric(inputtext[0])) return ShowPlayerDialog(playerid,BANKCREATE+2,DIALOG_STYLE_MSGBOX,"San Fierro Bank System","Invalid Account ID. Please use a 10-digit Account","Back","Cancel");
            new BankID = strval(inputtext[0]);
            new length = strlen(inputtext[0]);
            for(new b=0; b<MAX_BANKS; b++)
            {
                if(BankInfo[b][bBankID] == BankID) return ShowPlayerDialog(playerid,BANKCREATE+1,DIALOG_STYLE_MSGBOX,"San Fierro Bank System","That bank account is already taken","Back","Cancel");
            }
            if(length != 10) return ShowPlayerDialog(playerid,BANKCREATE+2,DIALOG_STYLE_MSGBOX,"San Fierro Bank System","Invalid Account ID. Please use a 10-digit Account","Back","Cancel");
            dini_IntSet(Playerfile(playerid),"BankID",BankID);
            PlayerInfo[playerid][pBankID] = BankID;
            BankInfo[BankID][bBankID] = BankID;
            dini_Create(Bankfile(BankID));
            dini_IntSet(Bankfile(BankID),"BankID",BankID);
            ShowPlayerDialog(playerid,BANKCREATE+3,DIALOG_STYLE_INPUT,"San Fierro Bank System","Type in a 4-digit password for your account:","Select","Cancel");
        }
        return 1;
    }
but for some reason.. it doesn't save the file... help please
Reply


Messages In This Thread
saving into file... help please. - by introzen - 08.07.2010, 13:24
Re: saving into file... help please. - by CAR - 08.07.2010, 14:39
Re: saving into file... help please. - by introzen - 08.07.2010, 18:01
Re: saving into file... help please. - by introzen - 08.07.2010, 22:41
Re: saving into file... help please. - by introzen - 09.07.2010, 08:52
Re: saving into file... help please. - by Hiddos - 09.07.2010, 08:55
Re: saving into file... help please. - by introzen - 09.07.2010, 08:57
Re: saving into file... help please. - by introzen - 09.07.2010, 09:27
Re: saving into file... help please. - by introzen - 09.07.2010, 09:57
Re: saving into file... help please. - by CAR - 09.07.2010, 09:59

Forum Jump:


Users browsing this thread: 1 Guest(s)