Jump to content
MakeWebGames

Recommended Posts

Posted

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?

Posted

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());
Posted
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.

Posted
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;
Posted (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 by lucky3809
Posted (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 by Mystical
Posted
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.... ;)

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

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