Las Venturas Playground
[BUG?] Minus Money - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: [BUG?] Minus Money (/thread-11975.html)

Pages: 1 2


[BUG?] Minus Money - Turkey - 09-01-2008

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]


Re: [BUG?] Minus Money - Jay - 09-01-2008

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.


Re: [BUG?] Minus Money - Xanland - 09-02-2008

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 ?


Re: [BUG?] Minus Money - tomozj - 09-02-2008

(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?

:)


Re: [BUG?] Minus Money - dab - 09-02-2008

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.


Re: [BUG?] Minus Money - Pugwipe - 09-02-2008

(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 :)


Re: [BUG?] Minus Money - Jay - 09-02-2008

(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.


Re: [BUG?] Minus Money - Barry - 09-11-2008

I'm just wondering, is this in the LVP server or just in a test server? :?


Re: [BUG?] Minus Money - Rien - 09-11-2008

it's the 2.90 testserver, dummy :D


Re: [BUG?] Minus Money - Barry - 09-11-2008

Are Moderator allowed to get there?

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