Negative Money [message #351459] |
Sat, 20 September 2008 12:39 ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/23190.png) |
Craziac
Messages: 157 Registered: September 2007
Karma: 0
|
Recruit |
|
|
Will you be able to buy Free Infantry if you have negative money?
|
|
|
|
|
|
|
|
Re: Negative Money [message #351626 is a reply to message #351459] |
Sun, 21 September 2008 17:35 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/22659.gif) |
sadukar09
Messages: 2812 Registered: May 2007 Location: Ottawa,Canada
Karma: 0
|
General (2 Stars) |
|
|
More like getting free stuff from a store only to find out you owe them whole wads of cash.
Quote: | [19:16:48] <APBBR> @ryan3k: THE ENFIELD DEFIES THE LAWS OF PHYSICS BECAUSE THE BULLETS INSTANTLY HIT THEIR TARGETS LOL
[19:16:52] <APBBR> @ryan3k: CHRONO TECHNOLOGY IN TEH BULLETS
|
Quote: | [22:48]<APBBR> @V0LK0V: AOL COMING UR WAI K
[22:48] <APBBR> Host: Quitting due to Westwood Online connection loss.
|
|
|
|
Re: Negative Money [message #351656 is a reply to message #351459] |
Sun, 21 September 2008 23:29 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/4882.jpg) |
Goztow
Messages: 9734 Registered: March 2005 Location: Belgium
Karma: 13
|
General (5 Stars) Goztoe |
|
|
In all these years I'm playing, I never had this problem.
You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
|
|
|
|
|
Re: Negative Money [message #351701 is a reply to message #351459] |
Mon, 22 September 2008 08:08 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/4882.jpg) |
Goztow
Messages: 9734 Registered: March 2005 Location: Belgium
Karma: 13
|
General (5 Stars) Goztoe |
|
|
If they broke it, then they should fix it.
You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
|
|
|
Re: Negative Money [message #351744 is a reply to message #351459] |
Mon, 22 September 2008 10:34 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
bisen11
Messages: 797 Registered: December 2004
Karma: 0
|
Colonel |
|
|
It's because of crates. There's a crate that takes away your money, and if it takes away more than you have then you get negative money. This is especially troublesome when you have no refinery and are in the negative several hundreds.
|
|
|
|
Re: Negative Money [message #351775 is a reply to message #351459] |
Mon, 22 September 2008 13:16 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
bisen11
Messages: 797 Registered: December 2004
Karma: 0
|
Colonel |
|
|
Yah, they have both of those kinds of crates. I guess they haven't gotten enough complaints to get rid of the demoney crate.
|
|
|
|
Re: Negative Money [message #351848 is a reply to message #351459] |
Tue, 23 September 2008 06:44 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/21327.jpg) |
futura83
Messages: 1285 Registered: July 2006 Location: England
Karma: 0
|
General (1 Star) Viva la Resistance! |
|
|
I don't know much coding, but if you have the players money as X and the money taken away as Y, wouldn't a simple logic thing like this work:
IF X < Y
Then X = 0
ELSE
X = X - Y
Well...wouldn't it be as simple as something like that?
This is a signature. Reading this is wasting your time.
|
|
|
Re: Negative Money [message #351853 is a reply to message #351459] |
Tue, 23 September 2008 06:58 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/4882.jpg) |
Goztow
Messages: 9734 Registered: March 2005 Location: Belgium
Karma: 13
|
General (5 Stars) Goztoe |
|
|
I think the problem is that Rene works with .xx credits/points as well.
You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
|
|
|
|
Re: Negative Money [message #351924 is a reply to message #351848] |
Tue, 23 September 2008 22:33 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/23190.png) |
Craziac
Messages: 157 Registered: September 2007
Karma: 0
|
Recruit |
|
|
insert_name_here wrote on Tue, 23 September 2008 08:44 | IF X < Y
Then X = 0
ELSE
X = X - Y
Well...wouldn't it be as simple as something like that?
|
Well..
if (money < cost) { return 2; } // Insufficient Funds
else { return 0; } // Allow
But yes, that's exactly the problem. Westwood didn't think we'd ever have negative money. But I still have to find the location that rejects it. Haven't so far!
[Updated on: Tue, 23 September 2008 22:34] Report message to a moderator
|
|
|
Re: Negative Money [message #351942 is a reply to message #351924] |
Wed, 24 September 2008 03:40 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
Adad
Messages: 84 Registered: April 2003
Karma: 0
|
Recruit |
|
|
Stewie wrote on Wed, 24 September 2008 13:33 |
insert_name_here wrote on Tue, 23 September 2008 08:44 | IF X < Y
Then X = 0
ELSE
X = X - Y
Well...wouldn't it be as simple as something like that?
|
Well..
if (money < cost) { return 2; } // Insufficient Funds
else { return 0; } // Allow
But yes, that's exactly the problem. Westwood didn't think we'd ever have negative money. But I still have to find the location that rejects it. Haven't so far!
|
In VendorClass::Purchase_* functions.
|
|
|
|
|
|