Jump to content
MakeWebGames

Mining mod


R!der

Recommended Posts

  • Replies 147
  • Created
  • Last Reply

Top Posters In This Topic

Re: ****FREE Mining mod****

 

This is optional

 

open header.php and find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

then find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

when i try to add this on a V2 game it messes up the header. please help?!

Link to comment
Share on other sites

  • 2 weeks later...
Guest Anonymous

Re: [mccode] Mining mod

not a 100% shore but when some one registers don u have to edit register where it inserts the the users

because this only updates the current users

update `users` set `mine_needed`=1000 WHERE `mine_needed`=0

update `users` set `max_power`=10 WHERE `max_power`=0

$db->query("INSERT INTO users (username, login_name, userpass, level,

money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave,

maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup)

VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12,

12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}

', -1, '$IP', '$IP')");

to

 

$db->query("INSERT INTO users (username, login_name, userpass, level,

money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave,

maxbrave, hp, maxhp,mine_level, mine_exp, mine_needed , power , max_power,location, gender, signedup, email, bankmoney, lastip, lastip_signup)

VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12,

12, 100, 100, 5, 5, 100, 100,1,0,100,0,100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}

', -1, '$IP', '$IP')");

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Re: [mccode] Mining mod

plz can sum1 help ???

 

Warning: Division by zero in /home/www/*************************/header.php on line 48

Warning: Division by zero in /home/www/*************************/header.php on line 49

 

$minexp=(int) ( $ir['mineexp']/$ir['mineneeded']*100); <<<------------line 48

$enopp=100-$enperc; <<<---------line 49

1st 1 2 help gets +1 everyday for a week

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Mining mod

run this query

update `users` set `mine_needed`=1000 WHERE `mine_needed`=0

update `users` set `max_power`=10 WHERE `max_power`=0

Link to comment
Share on other sites

Re: [mccode] Mining mod

im having this problem agen :@

Warning: Division by zero in /home/www/************************/header.php on line 131

Warning: Division by zero in /home/www/************************/header.php on line 132

 

LINE 131 >>> $minexp=(int) ( $ir['mine_exp']/$ir['mine_needed']*100);

LINE 132 >>> $enopp=100-$enperc;

(im using v2 codes)

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.

Guest
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...