Bank account
#1

hey fellas, i'v made a bank account, which gives you random password and saves, everything works fine
Only when i enter the pass in the Dialog, it says it's incorrect idk why.

here's the dialog

Код:
	switch( dialogid ) 
    {
        case DIALOG_BANKACCOUNT:
        {
            if( response )
            {
                new Baccount;
                if(Baccount == PlayerInfo[playerid][pBaccount])
                {
                    ShowPlayerDialog( playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "{FFFFFF}Bank", "Balance \nWithdraw \nDeposit", "Ok", "Close" );
				}
				else
				{
				    SendClientMessage(playerid,COLOR_GREY,"Wrong password!");
				}
                return 1;
            }
        }
Reply
#2

Baccount is defined as nothing? add smth like uhm
Код:
 Baccount = strlen(inputtext);
Reply
#3

Quote:
Originally Posted by WardenCS
Посмотреть сообщение
Baccount is defined as nothing? add smth like uhm
Код:
 Baccount = strlen(inputtext);
why inputtext? i have a cmd that you type inside the bank and it gives you random numbers, so basicly you haven't
enter anything.
Reply
#4

pawn Код:
switch( dialogid )
    {
        case DIALOG_BANKACCOUNT:
        {
            if( response )
            {
                new Baccount;
                if(strlen(inputtext) == PlayerInfo[playerid][pBaccount])
                {
                    ShowPlayerDialog( playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "{FFFFFF}Bank", "Balance \nWithdraw \nDeposit", "Ok", "Close" );
                }
                else
                {
                    SendClientMessage(playerid,COLOR_GREY,"Wrong password!");
                }
                return 1;
            }
        }
Not sure :S
Reply
#5

Quote:
Originally Posted by DannySnoopy
Посмотреть сообщение
hey fellas, i'v made a bank account, which gives you random password and saves, everything works fine
Only when i enter the pass in the Dialog, it says it's incorrect idk why.
but here you did say that it says the password is wrong
Reply
#6

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
pawn Код:
switch( dialogid )
    {
        case DIALOG_BANKACCOUNT:
        {
            if( response )
            {
                new Baccount;
                if(strlen(inputtext) == PlayerInfo[playerid][pBaccount])
                {
                    ShowPlayerDialog( playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "{FFFFFF}Bank", "Balance \nWithdraw \nDeposit", "Ok", "Close" );
                }
                else
                {
                    SendClientMessage(playerid,COLOR_GREY,"Wrong password!");
                }
                return 1;
            }
        }
Not sure :S
nah didn't work
Reply
#7

Quote:
Originally Posted by DannySnoopy
Посмотреть сообщение
nah didn't work
What actually happens ? What is incorrect ? Can you be more specific ?
Reply
#8

Quote:
Originally Posted by WardenCS
Посмотреть сообщение
but here you did say that it says the password is wrong
Look, i have a command /bankaccount -> gives you a random pass, and to access you're bank account, you need
to enter the password.

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
What actually happens ? What is incorrect ? Can you be more specific ?
just gave me wrong pass message.
Reply
#9

Well, than " PlayerInfo[playerid][pBaccount] " can be wrong. Is that the variable which saves the password. Can show the enums ?
Reply
#10

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
Well, than " PlayerInfo[playerid][pBaccount] " can be wrong. Is that the variable which saves the password. Can show the enums ?
enum pInfo
{
pPass,<-
pCash,
pRadio,
pAdmin,
pSex,
pAge,
pLevel,
pTaxi,
pBank,
pSkin,
pTeam,
pNumber,
pBaccount,<-
pLicense,
pRank,
pAccent,
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)