Snatchy Posted July 3, 2007 Share Posted July 3, 2007 I started a similar post about this problem a while ago but no one could seem to help me so I'm trying to get a fix for this, even if i have to pay someone to do it. When someone attacks someone and then mugs them if the player that they are mugging has more than 2.14 billion on hand there's a good chance that the person that is doing the mugging receives a negative result. does anyone else have or know of anyone else that has this problem with mugging? and does anyone or can someone fix this for me? will pay money if nescersary, NEED IT FIXED FAST THOUGH. Quote Link to comment Share on other sites More sharing options...
Matty Posted July 3, 2007 Share Posted July 3, 2007 Re: advanced attack.php Have you taken away the money cap in the database? Quote Link to comment Share on other sites More sharing options...
Michael Posted July 3, 2007 Share Posted July 3, 2007 Re: advanced attack.php Also maybe you should to take some cash away from the game like a realy good house only there for 3 dyas thats costs ALOT and when ya sell it you get 1/4 of what ya payed for it Quote Link to comment Share on other sites More sharing options...
Matty Posted July 3, 2007 Share Posted July 3, 2007 Re: advanced attack.php Didnt see this bit has more than 2.14 billion. Il investigate... And Micheal... What are you on? Your correct in posting it as its a fix, but a crap temporay fix if that lol. Quote Link to comment Share on other sites More sharing options...
Snatchy Posted July 3, 2007 Author Share Posted July 3, 2007 Re: advanced attack.php yep i have altered the database to bigint 40, I've also taken out all the (int) i could in the attack and mugging scripts and where i couldn't take it out i changed it to float Quote Link to comment Share on other sites More sharing options...
Matty Posted July 3, 2007 Share Posted July 3, 2007 Re: advanced attack.php Well the only line in the mugging file that does anything with the money is this... $stole=round($r['money']/(rand(200,5000)/10)); Try messing with that formula... Quote Link to comment Share on other sites More sharing options...
Snatchy Posted July 3, 2007 Author Share Posted July 3, 2007 Re: advanced attack.php $stole=(float) (rand($r['money']/500,$r['money']/20)); that's what i have on that line... will try it the same way as yours and thanks for the help, i appreciate it a lot guys Quote Link to comment Share on other sites More sharing options...
Snatchy Posted July 3, 2007 Author Share Posted July 3, 2007 Re: advanced attack.php thanks heaps, i changed the formula to the same as yours and it seems to be working fine now. Quote Link to comment Share on other sites More sharing options...
Matty Posted July 3, 2007 Share Posted July 3, 2007 Re: advanced attack.php That formula you posted wouldn't of worked as you were floating nothing. Anyways, glad it all worked out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.