Jump to content
MakeWebGames

Recommended Posts

Posted

While i was changing my game so that you can only view the EXP bar in a certain city, i encountered this problem...:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

The statement i was using is :

if($ir['location']==9)
{
<img src=bar_left_purp.gif height=13><img src=barpurple.gif width=$brperc height=13><img src=barred.gif width=$bropp height=13><img src=bar_fil_end.gif height=13>

[b]EXP:[/b] {$experc}%

}

 

Wheres the error there?

Thanks for any help!

Posted

if($ir['location']==9)

{

echo'

<img src=bar_left_purp.gif height=13><img src=barpurple.gif width=$brperc height=13><img src=barred.gif width=$bropp height=13><img src=bar_fil_end.gif height=13>

EXP: {$experc}%

';

}

Posted
if($ir['location']==9)
{
echo'
<img src=bar_left_purp.gif height=13><img src=barpurple.gif width='.$brperc.' height=13><img src=barred.gif width='.$bropp.' height=13><img src=bar_fil_end.gif height=13>

[b]EXP:[/b] '.$experc.'%
';
}

 

Yes, I know there are other problems, etc.....

I just fixed the problem at hand.

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