*Removed

Need help with an engine or coding not on the list? Need help with a game or the website and forums here? Direct all questions here.
Post Reply
Ceres
Posts: 27
Joined: Mon Oct 31, 2011 5:21 pm

*Removed

Post by Ceres »

*Removed
Last edited by Ceres on Sun Jan 01, 2012 5:51 pm, edited 1 time in total.
.•*´¨) Ceres
`¸.•´¸.•*´¨)¸.•*¨) http://www.cmmorpg.net
(¸.•´ (¸.• Team Leader and Lead Programmer of Ceres Online

Image Image Image
User avatar
Chris
Posts: 1581
Joined: Wed Sep 30, 2009 7:22 pm

Re: A Harmful Bug in my Game

Post by Chris »

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.

Code: Select all

if ($goldsent <= "0")
 
should be

Code: Select all

if ($goldsent <= 0)
 
Fighting for peace is declaring war on war. If you want peace be peaceful.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: A Harmful Bug in my Game

Post by hallsofvallhalla »

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.
Ceres
Posts: 27
Joined: Mon Oct 31, 2011 5:21 pm

Re: A Harmful Bug in my Game

Post by Ceres »

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.

Code: Select all

if ($goldsent <= "0")
 
should be

Code: Select all

if ($goldsent <= 0)
 
Thanks. I'll fix those, but I know thats not the problem.
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

Image Image Image
Ceres
Posts: 27
Joined: Mon Oct 31, 2011 5:21 pm

Re: A Harmful Bug in my Game

Post by Ceres »

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.
Thanks I will check on that.

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

Image Image Image
Post Reply

Return to “Advanced Help and Support”