hunter Posted June 4, 2007 Posted June 4, 2007 The first problem is when using the gym people dont gain exp second problem is i get this error in the item market Fatal error: Cannot redeclare item_remove() (previously declared in /home/deadmans/public_html/itemmarket.php:48) in /home/deadmans/public_html/global_func.php on line 351 ty in advance for any help i got item market fixed Quote
HITMAN 17 Posted November 20, 2007 Posted November 20, 2007 Re: a few questions on v2 problems i just wanna know how to get them to gain exp Quote
Guest Anonymous Posted November 20, 2007 Posted November 20, 2007 Re: a few questions on v2 problems Look over the forums item market error has been posted a 1000 times Quote
Godhand Posted November 20, 2007 Posted November 20, 2007 Re: a few questions on v2 problems For gym.php find: $db->query("UPDATE `userstats` SET `{$stat}` = `{$stat}` + $gain WHERE `userid` = $userid"); add after $db->query("UPDATE `users` SET `exp` = (`exp`+$gain/40) WHERE `userid` = $userid"); and if you want to change how much xp they get find in the previous code (`exp`+$gain/40) replace with (`exp`+$gain/X) replacing X with any number you want it to divide by. For itemmarket.php change item_remove(); into itemm_remove(); Quote
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.