• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

AAC Houses on character

Lais Prad

Disgusting Scammer
Joined
Apr 12, 2017
Messages
153
Solutions
6
Reaction score
15
Hello, Im trying to make script for show houses on characters (if he are owner of one) but without sucess, someone can help?

gesior acc 2012, tfs 1.3

scrip:
PHP:
// TESTE
        $house = $SQL->query( 'SELECT `houses`.`name`, `houses`.`town_id`, `houses`.`warnings` FROM `houses` WHERE `houses`.`town_id` = '.$player->getTownID().' AND `houses`.`owner` = '.$player->getId().';' )->fetchAll();
        if(count($house) != 0)
        {
        if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
        $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>House:</TD><TD colspan="2">'.$house[0]['name'].' ('.$towns_list[$player->getTownID()][$house[0]['town_id']].') is paid until '.date("M j Y", $house[0]['warnings']).'</TD></TR>';
        }
        //TESTE
 
Back
Top