RevCMS - Tips & Tricks

This will help some people!


  • Total voters
    32
Status
Not open for further replies.

Lotus

Legacy, it's all anyone leaves behind.
Jun 8, 2012
1,637
501
Code:
<?php
$getuser = mysql_query("SELECT * FROM user WHERE id = '".$_SESSION['user']['id']."'");
$stats = mysql_fetch_array($getuser);
$health = $stats['health'];
$energy = $stats['energy'];
$credits = $stats['credits_balance'];
$bank = $stats['bank'];
$figure = $stats['figure'];
?>
That can be placed anywhere.

Code:
<?php echo $health;?>
<?php echo $energy;?>
<?php echo $credits;?>
<?php echo $bank;?>
<?php echo $figure;?>
This is how it will display the amount of coins/health/energy/coins in bank/figure image. etc..

<img alt="{username}" src=" echo $figure;?>.gif&direction=3&head_direction=3&gesture=sml">
(Habbo Theme)

This here displays the looks of your avatar (Pixel).

Slight code help for the people that need help with their roleplay.
 
Status
Not open for further replies.

Users who are viewing this thread

Top