Major bank bug!
#8

The reason is just simple arithmetic - two negatives make a positive. When you subtract funds from the player, you probably do it like this GivePlayerMoney(playerid, -amount). But what happens if the variable amount is negative, ex., -100? In that case, it is interpreted as --100, which simplifies to +100.

The solution? Just have a separate condition when a player tries to deposit negative funds.
Reply


Messages In This Thread
Major bank bug! - by baba1234 - 18.05.2015, 21:10
Re: Major bank bug! - by amirm3hdi - 18.05.2015, 21:19
Re: Major bank bug! - by baba1234 - 18.05.2015, 21:21
Re: Major bank bug! - by nezo2001 - 18.05.2015, 21:23
Re: Major bank bug! - by Abagail - 18.05.2015, 21:25
Re: Major bank bug! - by amirm3hdi - 18.05.2015, 21:28
Re: Major bank bug! - by baba1234 - 18.05.2015, 21:32
Re: Major bank bug! - by Macluawn - 18.05.2015, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)