danger boy Posted May 26, 2008 Posted May 26, 2008 Re: Mining V2 Converted i addedd it but when u clik on something it dont owrk and it says go mining u have 0/0 Quote
John1 Posted May 26, 2008 Posted May 26, 2008 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 Quote
danger boy Posted May 27, 2008 Posted May 27, 2008 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? Quote
endo Posted June 11, 2008 Posted June 11, 2008 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. Quote
jds137 Posted July 29, 2008 Posted July 29, 2008 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] Quote
SpEcKs Posted August 27, 2008 Posted August 27, 2008 Re: Mining V2 Converted But no one has included the bar greens or anything like that so this dont actually work good Quote
jds137 Posted August 27, 2008 Posted August 27, 2008 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']} Mine Exp: {$minexp}% Quote
avguste Posted October 18, 2008 Posted October 18, 2008 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... Quote
BluntMan Posted February 21, 2009 Posted February 21, 2009 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 Quote
BluntMan Posted March 6, 2009 Posted March 6, 2009 Re: [mccode v2] Mining V2 Converted :mrgreen:BUMP Quote
AlabamaHit Posted March 6, 2009 Posted March 6, 2009 Re: [mccode v2] Mining V2 Converted bluntman Set some defualts.. I would imagine that would fix it. Quote
Zero-Affect Posted March 6, 2009 Posted March 6, 2009 Re: [mccode v2] Mining V2 Converted won't be that difficult if you read a quick sql manual first mate Quote
Wprincess Posted October 7, 2009 Posted October 7, 2009 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: Quote
p_T_s Posted January 20, 2010 Posted January 20, 2010 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] Quote
DELETE-ME-NOW- Posted July 18, 2010 Posted July 18, 2010 is there crons for this? As power doesnt seem to be refilling :( Quote
Dominion Posted July 18, 2010 Posted July 18, 2010 there is an update of this mod posted here -[mccode v2.x] Mines--Fixed cron is in the 1st post 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.