Page 1 of 1

*Removed

Posted: Sat Dec 31, 2011 4:06 pm
by Ceres
*Removed

Re: A Harmful Bug in my Game

Posted: Sat Dec 31, 2011 6:53 pm
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)
 

Re: A Harmful Bug in my Game

Posted: Sat Dec 31, 2011 7:00 pm
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.

Re: A Harmful Bug in my Game

Posted: Sat Dec 31, 2011 9:26 pm
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.

Re: A Harmful Bug in my Game

Posted: Sat Dec 31, 2011 9:39 pm
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.