moto Posted June 12, 2008 Share Posted June 12, 2008 Re: [mccode] Mining mod I ve been working on this script for a while. What i would like to be able to do is introduce an exspendable item that is required to mine with. I'm not a wiz with this stuff but I did my best if one of you who have more exp than I do would be willing to help i can start growing my hair back . I'm working with v1 and this is what i have so far PLEASE tell me whats wrong or give me some suggestions . mysql_query ("select * from inventory where inv_itemid='69' ",$c); if (mysql_num_rows ($q)) Print " {$ir ['username'] } You pick up your pick and wonder what you will find today."; else print " {$ir ['username'] } You can't mine with out a pick ! "; thanks for any help or suggestions. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted June 12, 2008 Share Posted June 12, 2008 Re: [mccode] Mining mod This should work... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't actually work with v1 so some of this may not work if not i'm sure someone will correct it. Quote Link to comment Share on other sites More sharing options...
Canjucks Posted October 17, 2008 Share Posted October 17, 2008 Re: [mccode] Mining mod Problem: I have bottomheader.jpg and when it shows on the index page and when your ming, but when you hit trouble like not enough power the bottomheader.jpg doesnt show and it stuffs my design up. I have figured out that i need this line $h->endpage(); but not entirely sure exactly where i should put it Please help with my issue. I have figured out most problems doing these but this one is annoying me Quote Link to comment Share on other sites More sharing options...
Kaotic Posted October 17, 2008 Share Posted October 17, 2008 Re: [mccode] Mining mod Problem: I have bottomheader.jpg and when it shows on the index page and when your ming, but when you hit trouble like not enough power the bottomheader.jpg doesnt show and it stuffs my design up. I have figured out that i need this line $h->endpage(); but not entirely sure exactly where i should put it Please help with my issue. I have figured out most problems doing these but this one is annoying me if u know u need $h->endpage(); where would u put it? at the end of the page Quote Link to comment Share on other sites More sharing options...
Canjucks Posted October 17, 2008 Share Posted October 17, 2008 Re: [mccode] Mining mod Simple answer i know and have that in, but doesn't work on all pages the bottomheader.jpg. I have attempted to mod it inbetween things but doesn't seem to make a difference. Quote Link to comment Share on other sites More sharing options...
Kaotic Posted October 17, 2008 Share Posted October 17, 2008 Re: [mccode] Mining mod do u have it before the ?> or after it? if after it needs to be before Quote Link to comment Share on other sites More sharing options...
Canjucks Posted October 17, 2008 Share Posted October 17, 2008 Re: [mccode] Mining mod before as below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
p_T_s Posted November 21, 2008 Share Posted November 21, 2008 Re: [mccode] Mining mod I am trying to add hospital time to mining, i currently have this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It works (as in sending me to hospital) but it is sending me there every time i mine... What do i have to add to make it random? Quote Link to comment Share on other sites More sharing options...
Uriah Posted November 22, 2008 Share Posted November 22, 2008 Re: [mccode] Mining mod maybe something like... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. but doing it this way with only 2 chances will make it kind 50/50 so you may want to add other chances to give a better randomness to it... And I really have no idea what I am doing anyway so this could be all wrong!!! Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 22, 2008 Share Posted November 22, 2008 Re: [mccode] Mining mod let me point something out to you all You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. safer, better looking & secure but i prefer my mine You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. has seen on Mine Shaft Good luck guys Quote Link to comment Share on other sites More sharing options...
MrGi Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod Just as some info from another post i posted on. Once again instead of using .$_SERVER['PHP_SELF']. use {$_SERVER['PHP_SELF']} using .$_SERVER['PHP_SELF']. usally causes some confusion and errors within the script and to my point of view using {$_SERVER['PHP_SELF']} is a safer way to use the method. But thats the way i code and my opinion Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod Just as some info from another post i posted on. Once again instead of using .$_SERVER['PHP_SELF']. use {$_SERVER['PHP_SELF']} using .$_SERVER['PHP_SELF']. usally causes some confusion and errors within the script and to my point of view using {$_SERVER['PHP_SELF']} is a safer way to use the method. But thats the way i code and my opinion '.$_SERVER['PHP_SELF'].' is no different to {$_SERVER['PHP_SELF']} i just use another method of brackets when you You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you use '..' when you You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you use {} i fail to see any error with this Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod I'm not sure what errrors. I use this with no errors.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod I'm not sure what errrors. I use this with no errors.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. exactly my point lol it seems to not error and i've been using '..' for along time unless i get bored and sprintf it lol Quote Link to comment Share on other sites More sharing options...
MrGi Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod I have yet to see errors with that command also. But another coder i use to know told me that using the brackets takes away from that??? Im really not sure on it, I was told along time ago about that Server Deal... Thats just what i use.. I figured i would post it up and see what the replys were anyways, Just to see if it really mattered..lol..In which i see it doesnt. Either Or, Great Clean-up on the script Zero. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod I have yet to see errors with that command also. But another coder i use to know told me that using the brackets takes away from that??? Im really not sure on it, I was told along time ago about that Server Deal... Thats just what i use.. I figured i would post it up and see what the replys were anyways, Just to see if it really mattered..lol..In which i see it doesnt. Either Or, Great Clean-up on the script Zero. Thanks i guess it could be a error on a older php we will have to wait till Nyna posts lol +1 to everyone lol don't forget the +1 back and no - lol Quote Link to comment Share on other sites More sharing options...
MrGi Posted November 23, 2008 Share Posted November 23, 2008 Re: [mccode] Mining mod Plus One for me bud..That makes ya +25.... Yeah.. Wait till Nyna Posts..Haha..We will get the full info on it Quote Link to comment Share on other sites More sharing options...
Wickidnezz Posted March 3, 2009 Share Posted March 3, 2009 Re: [mccode] Mining mod No, I wasn't putting him down. And I'm not mad at you...I'm just frustrated cause you stole pics off my site and then said you found them on the internet. And you're not trying to learn...you're scavenging through the forums for freebies for your justfreespace game with stolen mccodes. since when is it a crime to save a picture its kinda your fault aswell for having right click enabled even tho having a no right click script doesn't help much but it helps abit so Z?v?? perhaps you might want to try securing your graphics and what not so people cant just go right click and save as and he could have very easily saved your login and register page or any page for that matter so maybe you might want to think bout that also if ppl go to save as in file on there browser they can sweep the entire contents of ur site off graphics and html content Quote Link to comment Share on other sites More sharing options...
keez123 Posted August 10, 2012 Share Posted August 10, 2012 how do you do this? the querys 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 ; Quote Link to comment Share on other sites More sharing options...
newttster Posted August 10, 2012 Share Posted August 10, 2012 Open your cpanel ... click on phpMyAdmin ... go to the SQL tab and then type your queries into the text area ... then click go. Quote Link to comment Share on other sites More sharing options...
stevenrfc Posted August 10, 2012 Share Posted August 10, 2012 how do you do this? the querys 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 ; In phpmyadmin click on your database and then run sql. Just paste them in Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted August 10, 2012 Share Posted August 10, 2012 how do you do this? the querys 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 ; That will throw an error use this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. the one with all the ; will only let you do 1 at a time. So if you replace ALL the ; with , except for the very last one just leave that blank you can just copy and paste it Quote Link to comment Share on other sites More sharing options...
Scorpio Posted February 7, 2013 Share Posted February 7, 2013 Upgraded and fix version :D You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
AnonymousUser Posted February 13, 2013 Share Posted February 13, 2013 i dont see why you dont just You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. must just be my preferences idk:D good work though Quote Link to comment Share on other sites More sharing options...
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.