Jump to content
MakeWebGames

Recommended Posts

Posted

can someone help me with the code to have my users profile pics to display when they battle. i dont need a full battle script as i like mine, i just need the part for displaying the profile pics.

Posted

i got this error Parse error: syntax error, unexpected '<' in heres the code

print "</table>";
print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health:  </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>";
<img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' />
$h->endpage();
?> 
Posted
i got this error Parse error: syntax error, unexpected '<' in heres the code
print "</table>";
print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health:  </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>";
<img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' />
$h->endpage();
?> 

Lol okai, Replace all that with

print "</table>";

print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>

<img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' />";

$h->endpage();

?>

Posted
now i have this error Parse error: syntax error, unexpected $end in & i copy & pasted what u had.

It's working for me,

This is what I've go exactly and if not then it's something else in your attack.php

print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>

<img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' />";

}

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