*Removed
Re: A Harmful Bug in my Game
Well to start this definitely wouldn't be how I would go about writing a script like this, and I don't really understand the point behind the function you made, it's not really reusable. Here's most likely where the problems are occurring.
should be
			
			
									
						
							Code: Select all
if ($goldsent <= "0")
 Code: Select all
if ($goldsent <= 0)
 Fighting for peace is declaring war on war. If you want peace be peaceful.
			
						- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: A Harmful Bug in my Game
it could also be the limit, like if you limit the number to 4 int then a person puts in 999999999999. Chris showed me that one  
  
You need to limit the max and minimum.
			
			
									
						
										
						 
  You need to limit the max and minimum.
Re: A Harmful Bug in my Game
Thanks. I'll fix those, but I know thats not the problem.Chris wrote:Well to start this definitely wouldn't be how I would go about writing a script like this, and I don't really understand the point behind the function you made, it's not really reusable. Here's most likely where the problems are occurring.should beCode: Select all
if ($goldsent <= "0")Code: Select all
if ($goldsent <= 0)
					Last edited by Ceres on Sat Dec 31, 2011 10:42 pm, edited 1 time in total.
									
			
						
							.•*´¨) Ceres
`¸.•´¸.•*´¨)¸.•*¨) http://www.cmmorpg.net
(¸.•´ (¸.• Team Leader and Lead Programmer of Ceres Online
 
  
 
			
						`¸.•´¸.•*´¨)¸.•*¨) http://www.cmmorpg.net
(¸.•´ (¸.• Team Leader and Lead Programmer of Ceres Online
 
  
 
Re: A Harmful Bug in my Game
Thanks I will check on that.hallsofvallhalla wrote:it could also be the limit, like if you limit the number to 4 int then a person puts in 999999999999. Chris showed me that one
You need to limit the max and minimum.
Edit: I just fixed all my ints and made it so a player cannot carry more than 16,000,000 in his/her hand or bank but I really don't think its going to stop the transfer bug.
.•*´¨) Ceres
`¸.•´¸.•*´¨)¸.•*¨) http://www.cmmorpg.net
(¸.•´ (¸.• Team Leader and Lead Programmer of Ceres Online
 
  
 
			
						`¸.•´¸.•*´¨)¸.•*¨) http://www.cmmorpg.net
(¸.•´ (¸.• Team Leader and Lead Programmer of Ceres Online
 
  
 

