Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Mining V2 Converted

you need to go into your sql database and change the following values

mine_level = 1 mine_exp = 0 mine_needed = 1000 power = 10 max_power = 10

Posted

Re: Mining V2 Converted

 

you need to go into your sql database and change the following values

mine_level = 1 mine_exp = 0 mine_needed = 1000 power = 10 max_power = 10

i dnoe that6 i put this in the sql query

ALTER TABLE `users` ADD `mine_level = 1` int(11) NOT NULL ;

ALTER TABLE `users` ADD `mine_exp = 0` int(11) NOT NULL ;

ALTER TABLE `users` ADD `mine_needed = 1000` int(11) NOT NULL ;

ALTER TABLE `users` ADD `power = 10` int(11) NOT NULL ;

ALTER TABLE `users` ADD `max_power = 10` int(11) NOT NULL ;

but still dont work any help please?

  • 2 weeks later...
Posted

Re: Mining V2 Converted

im getting this from that code

Fatal error: Call to undefined function get_mine() in /home/endo/public_html/mine.php on line 6

this is the code

You're unable to view this code.

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

  • 1 month later...
Posted

Re: Mining V2 Converted

I added it as well, using all the info given but when u click on something it don't work and it says go mining you have 0/0

 

Welcome to the mine shaft.

There are 3 spots to go mining but thay are restricted depending on your mine level.

Your mining level is 0 and you have 0/0 mining experience

Crystal Mines

[Level 1 mine]

[Level 20 mine]

[Level 40 mine]

Money Mines

[Level 10 mine]

[Level 30 mine]

[Level 40 mine]

  • 5 weeks later...
Posted

Re: Mining V2 Converted

Go to header.php and you can add this, just look for: $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); add after each one, pretty easy...

 

$power=(int) ($ir['power']/$ir['max_power']*100);

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

 

}

if($power > 100)

{

$power = ceil(100);

}

if($minexp > 100)

{

$minexp = ceil(100);

}

 

$pow=100-$power;

$minex=100-$minexp;

 

Power: {$ir['power']}/{$ir['max_power']}

bluebar.pngbarred.gif

Mine Exp: {$minexp}%

bluebar.pngbarred.gif

  • 1 month later...
Posted

Re: Mining V2 Converted

Do we need to run SQL for the code below? if yes,what is the SQL code

 

You're unable to view this code.

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

Not Tested But Should Work...

  • 4 months later...
Posted

Re: [mccode v2] Mining V2 Converted

ok ive added it but i have the problem everyone scemes to have

 

ALTER TABLE `users` ADD `mine_level` int(11) NOT NULL ;

ALTER TABLE `users` ADD `mine_exp` int(11) NOT NULL ;

ALTER TABLE `users` ADD `mine_needed` int(11) NOT NULL ;

ALTER TABLE `users` ADD `power` int(11) NOT NULL ;

ALTER TABLE `users` ADD `max_power` int(11) NOT NULL ;

this is the sql but it doesnt work people complained but there was not a fix does anybody know what i need to add to make it work

  • 2 weeks later...
  • 7 months later...
Posted

with the code in and sql in i am still getting errors

You begin mining in the level 20 mine and found 9 crystal(s).

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '+'228' WHERE userid=1' at line 1

Query was UPDATE users SET crystals=crystals+'9',mine_exp+'228' WHERE userid=1

wats all that mean please help :love:

  • 3 months later...
Posted

Use these sql's

[mysql]ALTER TABLE `users` ADD`mine_level` INT(11) NOT NULL DEFAULT '1';

ALTER TABLE `users` ADD`mine_exp` INT(11) NOT NULL DEFAULT '1';

ALTER TABLE `users` ADD`mine_needed` INT(11) NOT NULL DEFAULT '1000';

ALTER TABLE `users` ADD`power` INT(11) NOT NULL DEFAULT '10';

ALTER TABLE `users` ADD`max_power` INT(11) NOT NULL DEFAULT '10';

[/mysql]

  • 5 months later...

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