Mystical Posted June 29, 2011 Posted June 29, 2011 I bought a template from Peter a while back. Nice template however, It keeps doing this http://i52.tinypic.com/jf7o61.png whenever the word die and sometimes when exit is used in a mod. Example : else { $weaponcheck1=mysql_query("SELECT COUNT(*) as amt FROM `inventory` WHERE `inv_userid`={$ir['userid']} and `inv_itemid`=$number",$c) or die(mysql_error()); $weaponcheck=mysql_fetch_array($weaponcheck1); if($weaponcheck['amt']<1) { die("You need to obtain a RR Gun to challenge others"); } print "<h3>Russian Roulette</h3>"; print "You can challenge someone to a game of RR below.<br />"; print "Each player puts in an amount of determined money and the winner gets all of it.<br />"; print "<form action='russianroulette.php?action=send' method='post'>"; print "User Id: <input type='text' name='userid'><br />"; print "Money: <input type='text' name='amount'><br />"; print "<input type='submit' value='Submit'></form>"; Cant post the whole file as it is a paid mod. I have tried many suggestions to fix it but none seem to work. Is there something I could add to globals to fix the problem with all mods I install? Quote
Dominion Posted June 29, 2011 Posted June 29, 2011 Do you mean the footer of the template, or parts of the page when you click “view soruce” are missing? echo ‘You need to obtain a RR Gun to challenge others’; die($h->endpage()); Quote
Uridium Posted June 29, 2011 Posted June 29, 2011 try putting $h->endpage(); after the die statement not saying thats the cause but ya never know Quote
Mystical Posted June 29, 2011 Author Posted June 29, 2011 Do you mean the footer of the template, or parts of the page when you click “view soruce” are missing? echo ‘You need to obtain a RR Gun to challenge others’; die($h->endpage()); I have tried that several times Dominion but when I do it like you suggested this is what happens:http://i56.tinypic.com/r85wug.png Absolutely nothing seems to work. Quote
W3Theory || Peter Posted June 29, 2011 Posted June 29, 2011 Are the mods you are installing based on your version of mccodrs. Quote
Dominion Posted June 29, 2011 Posted June 29, 2011 I have tried that several times Dominion but when I do it like you suggested this is what happens:http://i56.tinypic.com/r85wug.png Absolutely nothing seems to work. Is this inside a function? If so add $h to the global global $h; Quote
Mystical Posted June 29, 2011 Author Posted June 29, 2011 Are the mods you are installing based on your version of mccodrs. Yes Peter, all the mods are for v.2 Quote
lucky3809 Posted June 29, 2011 Posted June 29, 2011 (edited) sometimes re-uploading the image again, works, try that if you haven't yet, may solve your problem i don't see why it would be doing that unless the page is not loading completely. It may be the css file too, may not be repeating the image. Edited June 29, 2011 by lucky3809 Quote
W3Theory || Peter Posted June 29, 2011 Posted June 29, 2011 The file and template works on other pages, so it has to do with the coding involved in those files. Quote
Maniak Posted June 29, 2011 Posted June 29, 2011 Make sure the function(s) have the line "global: $db........;" as Dominion said earlier. Quote
Mystical Posted June 30, 2011 Author Posted June 30, 2011 (edited) Is this inside a function? If so add $h to the global global $h; That did it Dominion! Thank you so much. I have been pulling out my hair for 2 weeks now trying to figure it out. Worked great. I must of done a million searches for an answer and nothing worked. Much appreciated. I wish this mcocdes stuff was html. That I can do with my eyes closed. Edited June 30, 2011 by Mystical Quote
Mystical Posted June 30, 2011 Author Posted June 30, 2011 The file and template works on other pages, so it has to do with the coding involved in those files. It is the files Peter and my lack of skill with coding to fix them. I am learning thanks to you guys. From the help that Dominion just gave me I have fixed about 5 mods so they actually work and the template you made me looks nice when I can get it to work.... ;) Quote
Dominion Posted June 30, 2011 Posted June 30, 2011 That did it Dominion! Thank you so much. I have been pulling out my hair for 2 weeks now trying to figure it out. Worked great. I must of done a million searches for an answer and nothing worked. Much appreciated. I wish this mcocdes stuff was html. That I can do with my eyes closed. You're welcome. 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.