| Negative Money [message #351459] | 
			Sat, 20 September 2008 12:39   | 
		 
		
			
				
				
				  | 
					
						  
						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    | 
		 
		
			
				
				
				  | 
					
						  
						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    | 
		 
		
			
				
				
				  | 
					
						  
						Goztow
						 Messages: 9761 Registered: March 2005  Location: Belgium
						
	Karma: 14
 
					 | 
					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    | 
		 
		
			
				
				
				  | 
					
						  
						Goztow
						 Messages: 9761 Registered: March 2005  Location: Belgium
						
	Karma: 14
 
					 | 
					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    | 
		 
		
			
				
				
				
					
						  
						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    | 
		 
		
			
				
				
				
					
						  
						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    | 
		 
		
			
				
				
				  | 
					
						
						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    | 
		 
		
			
				
				
				  | 
					
						  
						Goztow
						 Messages: 9761 Registered: March 2005  Location: Belgium
						
	Karma: 14
 
					 | 
					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    | 
		 
		
			
				
				
				  | 
					
						  
						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    | 
		 
		
			
				
				
				
					
						  
						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.
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 |