Jump to content
MakeWebGames

Recommended Posts

Posted

dont know if i got this in the right place but here goes

ok my crimes and my mining script seem to be running two times

for example it says it takes 1 brave but it takes 2

?(

i also took the scripts out and put in a fresh one and still the same

i dont think the problem lies with the script tho not sure

can anyone help me

Posted
I've seen this before its most likely a broken image tag, The browser tries to refresh again to see if it can make the image load.

 

I'll second that. If you have [/img], then the browser actually attempts to load the current page as the image. Therefore, if you have three of these on a page, you get four page loads total. If you aren't sure what image you want in there, just put anything, even it it's not a real image. That way, the browser attempts to load a nonexisting page instead of the current page.

Hope that helps.

Posted
I've seen this before its most likely a broken image tag, The browser tries to refresh again to see if it can make the image load.

 

I'll second that. If you have [/img], then the browser actually attempts to load the current page as the image. Therefore, if you have three of these on a page, you get four page loads total. If you aren't sure what image you want in there, just put anything, even it it's not a real image. That way, the browser attempts to load a nonexisting page instead of the current page.

Hope that helps.

ok so i got to look for an image source in the script because there is only one image on the crimes page and mining page and those two pics load in fine

 

it worked fine until my brothers server went down and when everything was uploaded to new server that wat happened

Posted
<?php
$macropage="criminal.php";
include "globals.php";
if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); }
$q2=$db->query("SELECT * FROM crimes ORDER BY crimeBRAVE ASC");
while ($r2=$db->fetch_row($q2))
{
$crimes[]=$r2;
}
$q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC");
print "[img=http://www.warriorsreign.com/handcuff.jpg]
[b]Criminal Centre[/b]

<table width='75%' cellspacing=1 class='table'><tr><th>Crime</th><th>Cost</th><th>Money PayOut</th><th>Crystal PayOut</th><th>Do</th></tr>";
while($r=$db->fetch_row($q))
{
print "<tr><td colspan='5' class='h'>{$r['cgNAME']}</td></tr>";
foreach($crimes as $v)
{
if($v['crimeGROUP'] == $r['cgID'])
{
print "<tr><td>{$v['crimeNAME']}</td><td>{$v['crimeBRAVE']} Brave</td><td>{$v['crimeSUCCESSMUNY']}</td><td>{$v['crimeSUCCESSCRYS']}</td><td>[url='docrime.php?c={$v[']Do[/url]</td></tr>";
}
}
}
print "</table>";
$h->endpage();
?>

 

def not the image i removed it from the script and same thing happened

Posted

I had the exact same problem and I found that one of the table was removed causing the street turns to use 2 at a time and people using items were using 2 at a time and so on and so forth

Posted
I had the exact same problem and I found that one of the table was removed causing the street turns to use 2 at a time and people using items were using 2 at a time and so on and so forth
and how did you get it fixed
Posted
def not the image i removed it from the script and same thing happened

Going from what Floydain & Dave said the img tag issue would seem to be the problem. Now when you posted the code for the crimes page, which you had removed the images from, you still got the problem & you also said this was affecting both the mining page and crimes page. As its effecthing both I think theres a chance your faulty img tag maybe in your header or footer (you will not see it in the script because it will be added when including globals.php).

So you may want to check your header & footer for a faulty (blank) img tag - it may not be the problem but theres also a chance it is, so worth checking that.

Posted

Look in header.php

for any blank images

EXAMPLE: background-image:url();

If there is nothing there the page will do exactly as Floydian mentioned.

FIX:

I created a blank image called blank.png and inserted it into my header:

EXAMPLE: background-image:url(blank.png);

This should fix this issue.

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