andrew95434
Banned User
hi, i have this part of script in modern aac:
and i want to add an if clause before this part:
please help!!!
<a onmouseover="tooltip.show('<font size=1>
<?php
echo getVocationName($player->vocation) ?></font>',150);" onmouseout="tooltip.hide();" href="<?php echo WEBSITE; ?>/index.php/character/view/<?php echo $player->name; ?>"><strong>
<?php
echo "<font color='green'>$player->name</font>";
?>
</strong></a><br />
and i want to add an if clause before this part:
to make that when the player is online, the font of the word be green, and when offline it turns red. i tried using this:echo "<font color='green'>$player->name</font>";
but it didn't work.if($player->isOnline()) echo "<font color='green'>$player->name</font>";
please help!!!