Jump to content

a few questions on v2 problems


Recommended Posts

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

Link to comment
Share on other sites

  • 5 months later...

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


replace with


replacing X with any number you want it to divide by.

For itemmarket.php change



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...