SA-MP Forums Archive
My system bugs... - 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: My system bugs... (/showthread.php?tid=439261)



My system bugs... - Stefand - 24.05.2013

SOLVED


Re: My system bugs... - zombieking - 24.05.2013

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


Re: My system bugs... - Stefand - 24.05.2013

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


Re: My system bugs... - zombieking - 24.05.2013

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


Re: My system bugs... - Stefand - 24.05.2013

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


Re: My system bugs... - Stefand - 24.05.2013

FIXED, made a bool