"strlen"?? help please...
#1

Hey everyone. I've made a bank system using dialogs.. now i want to check the lenght of the bank ID... but I get an error:

pawn Код:
if(dialogid == BANKCREATE)
    {
        if(response)
        {
            new BankID = strval(inputtext[0]);
            new length = strlen(BankID); //ERROR LINE
            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 being used","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);
            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;
    }
Код:
error 035: argument type mismatch (argument 1)
Reply


Messages In This Thread
"strlen"?? help please... - by introzen - 08.07.2010, 11:44
Re: "strlen"?? help please... - by MenaceX^ - 08.07.2010, 11:46
Re: "strlen"?? help please... - by introzen - 08.07.2010, 11:48
Re: "strlen"?? help please... - by Hiddos - 08.07.2010, 11:53
Re: "strlen"?? help please... - by MenaceX^ - 08.07.2010, 11:57
Re: "strlen"?? help please... - by introzen - 08.07.2010, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)