Hello There, Guest! Login or Register


[BUG?] Minus Money
#1
What I was doing:

I went into the interior at the 'Emerald Isle' building and gambled. I first lost and then won. After that I went to the bombingshop and typed /gotpetercash 66666666 which caused my money to go on minus (-). Then I got jailed.  :?


[Image: sa-mp-276.jpg]
[Image: sa-mp-277.jpg]
Reply
#2
GTASA has a money limit of 99 billion. Once this limit is breached, the money then goes into minus. If a player in LVP has a certain amount of minus money, they get declared bankrupt and jailed for 3 minutes.
Reply
#3
Can we fix this by adding something like /gotpetercash max and a check if it is higher then 99 billion... ?

Edit: Oh, btw - since when does the jail work ?
Reply
#4
(09-02-2008, 11:05 AM)Xanland link Wrote: Can we fix this by adding something like /gotpetercash max and a check if it is higher then 99 billion... ?

Edit: Oh, btw - since when does the jail work ?

Um, we could add a check in GiveMoney() or whatever to see if the end money is > 99 billion - fixes all bugs then. If it's over, then you just get 99 billion?

:)
Reply
#5
I always found it more logical to use a function to give cash to a player, then you can update the cash in the score board like that, compared to using a timer to update every so often. however, I haven't looked through LVP's code on that side of things.

I know though that using a timer is still required since things like casinos and other ingame money sources can give you money. Anyway, the function might be a good idea all in all for withdrawing, properties, etc.
Reply
#6
(09-02-2008, 03:33 PM)tomozj link Wrote: Um, we could add a check in GiveMoney() or whatever to see if the end money is > 99 billion - fixes all bugs then. If it's over, then you just get 99 billion?

:)
99 billion? Uhm, The 32-bits signed integer limit is only 2 billion so that wouldn't work too well :)
Reply
#7
(09-02-2008, 05:40 PM)dab link Wrote: I always found it more logical to use a function to give cash to a player, then you can update the cash in the score board like that, compared to using a timer to update every so often. however, I haven't looked through LVP's code on that side of things.

I know though that using a timer is still required since things like casinos and other ingame money sources can give you money. Anyway, the function might be a good idea all in all for withdrawing, properties, etc.

LVP does have a replacement function to give a player money which works with the anticheat. I guess it would be better to update a players score using this method, not really important though.
Reply
#8
I'm just wondering, is this in the LVP server or just in a test server? :?
Reply
#9
it's the 2.90 testserver, dummy :D
Reply
#10
Are Moderator allowed to get there?

yes: Could you give me the IP?  :>
no:  ;(  :'(  ;(  :'(
Reply