Jump to content
MakeWebGames

Recommended Posts

Posted

Does anyone know where this would be added i keep getting error where ever i add it

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: House pic trouble

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

i think lol

add it under

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I Likes Colours

and obv remove the php tags lool

Posted

Re: House pic trouble

this works good

<?php

$housequery = '1';

include_once (DIRNAME(__FILE__) . '/globals.php');

if($ir['protected'])

{

print "<h2>Housing Info:</h2>

<table class='table' border='1'>

<tr>

<td>{$ir[</td>

</tr>

</table>

You Currently Live In {$ir['hNAME']}

";

print "<font color=red>you are currently protected with a body guard for {$ir['protected']} hours</font>";

}

$BankMoney = ($ir['bankmoney'] == '-1') ? 'No Account!' : number_format($ir['bankmoney']);

$m=$db->query("SELECT * FROM users WHERE userid='{$ir['married']}'"); $par=$db->fetch_row($m);

$partner = ($ir['married'] != 0) ? "<font color=green>{$par['username']}</font> [Manage]" : "<font color=red>N/A</font>";

if ($ir['noobpack'] == '0') {

echo '<form action="starterpack.php">

<input type="submit" value="Claim your free starter pack now!">

</form>';

}

echo '<h3 style="text-decoration: underline;">Home</h3>

<table width="100%" border="1" cellspacing="0" cellpadding="3" style="text-align:center;" class="table">

<tr>

<td width="50%">Name: '.stripslashes($ir['username']).'</td>

<td width="50%">Level: '.number_format($ir['level']).'</td>

</tr>

<tr>

<td>Property: '.stripslashes($ir['hNAME']).'</td>

<td>HP: '.number_format($ir['hp']).'/'.number_format($ir['maxhp']).'</td>

</tr>

<tr>

<td>Money: '.number_format($ir['money']).'</td>

<td>Crystals: '.number_format($ir['crystals']).'</td>

</tr>

<tr>

<td colspan="2">Married: '.$partner.'</td>

</tr>

</table>';

$TotalStats = $ir['strength'] + $ir['agility'] + $ir['guard'] + $ir['labour'] + $ir['IQ'];

$TotalRank = get_rank($TotalStats, 'strength + agility + guard + labour + IQ');

echo '

 

<h3 style="text-decoration: underline;">Stats Info:</h3>

<table width="100%" border="1" cellspacing="0" cellpadding="3" class="table" style="text-align:center;">

<tr>

<th width="33%">Stat</th>

<th width="33%">Amount</th>

<th width="34%">Rank</th>

</tr>

<tr>

<td>Strength</td>

<td>'.number_format($ir['strength']).'</td>

<td>Rank: '.get_rank($ir['strength'], 'strength').'</td>

</tr>

<tr>

<td>Agility</td>

<td>'.number_format($ir['agility']).'</td>

<td>Rank: '.$ir['agirank'] = get_rank($ir['agility'], 'agility').'</td>

</tr>

<tr>

<td>Guard</td>

<td>'.number_format($ir['guard']).'</td>

<td>Rank: '.$ir['guarank'] = get_rank($ir['guard'], 'guard').'</td>

</tr>

<tr>

<td>Labour</td>

<td>'.number_format($ir['labour']).'</td>

<td>Rank: '.$ir['labrank'] = get_rank($ir['labour'], 'labour').'</td>

</tr>

<tr>

<td>IQ</td>

<td>'.number_format($ir['IQ']).'</td>

<td>Rank: '.$ir['IQrank'] = get_rank($ir['IQ'], 'IQ').'</td>

</tr>

<tr>

<td>Total Stats</td>

<td>'.number_format($TotalStats).'</td>

<td>Rank: '.$TotalRank.'</td>

</tr>

</table>

 

';

if(isset($_POST['NotesUpdate']))

{

$db->query(sprintf("UPDATE `users` SET `user_notepad`='%s' WHERE `userid` = '%u'", mysql_real_escape_string($_POST['NotesUpdate']), $userid));

header('Location: index.php');

}

echo 'Your Personal Notepad:

<form action="index.php" method="POST">

<textarea rows="10" cols="50" name="NotesUpdate">'.htmlspecialchars(stripslashes($ir['user_notepad'])).'</textarea>

 

<input type="submit" value="Update Personal Notes!" />

</form>';

$h->endpage();

?>

Posted

Re: House pic trouble

umm ok just go over my help lol looks wrong anyway lol

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

so if your protected it shows you what house you live in

Posted

Re: House pic trouble

 

Does anyone know where this would be added i keep getting error where ever i add it

Can you post the error you getting?

check that you have a hPIC in your database, if not you need to add it.

Posted

Re: House pic trouble

no errors this time, but all it prints is (Your House Is:Shack) in colour red and dosent display the pic

Posted

Re: House pic trouble

yea but my dont appear lol cos u put it as if $ir [protected]

so i can only see the house pic if i am protected

Posted

Re: House pic trouble

 

no errors this time, but all it prints is (Your House Is:Shack) in colour red and dosent display the pic

Naturally... you need to <img> the $ir['hPIC'] as chicka already "said"

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