My system bugs...
#1

SOLVED
Reply
#2

I don't see any code saying 'Invalid Number', can you be more specific/descriptive?
Reply
#3

pawn Код:
else if(ATMNUMBER != Player[i][BankNumber])//When the banknumber is not from someone. << This is what the player that transfers it sees.
                        {
                            Player[playerid][ATMSELECTED] = 5;
                            Player[playerid][ATMSTEP] = 2;
                            format(string, sizeof(string), "Current Balance~n~~l~$ %d", Player[playerid][BankMoney]);
                            TextDrawSetString(ATMLINE1[playerid], string);
                            format(string1, sizeof(string1), "Transfer amount~n~~l~$ %s", Player[playerid][ATMTRANSFERMONEY]);
                            TextDrawSetString(ATMLINE2[playerid], string1);
                            format(string2, sizeof(string2), "Transfer to~n~~r~Invalid banknumber");
                            TextDrawSetString(ATMLINE3[playerid], string2);
                            format(string3, sizeof(string3), "New Balance~n~~l~$ %d", (Player[playerid][BankMoney]-ATMTMONEY));
                            TextDrawSetString(ATMLINE4[playerid], string3);
                            TextDrawShowForPlayer(playerid, Text:ATMLINE1[playerid]);
                            TextDrawShowForPlayer(playerid, Text:ATMLINE2[playerid]);
                            TextDrawShowForPlayer(playerid, Text:ATMLINE3[playerid]);
                            TextDrawShowForPlayer(playerid, Text:ATMLINE4[playerid]);
                            Player[playerid][ATMTRANSFERMONEY] = EOS;
                            Player[playerid][ATMTRANSFERNUMBER] = EOS;
                        }
                    }
                }
olmost at the end of the pawn thing.

Correction: Its Invalid BankNumber
Reply
#4

pawn Код:
new ATMNUMBER = strval(Player[playerid][ATMTRANSFERNUMBER]);
Isn't ATMTRANSFERNUMBER already an integer? (strval gets the integer value of a string)
Reply
#5

No ATMTRANSFERNUMBER is a string so they can use the keypad to type, instead of counting the letters.
Reply
#6

FIXED, made a bool
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)