• 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!

Guild with ID 0 doesn't exist. [Guild War System] HELP!

Kaywin

Lord of War WoW/Tibia 2D
Joined
Oct 24, 2008
Messages
541
Reaction score
6
Location
SwedeN
When i try to click on the Logo at one of the guilds that is invited in war this error is coming up:

The Following Errors Have Occurred:
# Guild with ID 0 doesn't exist.

I have searched and I have tryed everything to get it works and I don't know what I shall do anymore.. So please help me! :)

Htdocs/Latestnews

Code:
$main_content .= '<div class="NewsHeadline">
    <div class="NewsHeadlineBackground" style="background-image:url(' . $layout_name . '/images/news/newsheadline_background.gif)">
        <table border="0">
            <tr>
                <td style="text-align: center; font-weight: bold;">
                    <font color="white">Most powerfull guilds</font>
                </td>
            </tr>
        </table>
    </div>
</div>
<table border="0" cellspacing="3" cellpadding="4" width="100%">
    <tr>';

foreach($SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`,
    `g`.`logo_gfx_name` AS `logo`, COUNT(`g`.`name`) as `frags`
FROM `killers` k
    LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id`
    LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id`
    LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id`
    LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id`
WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1
    GROUP BY `name`
    ORDER BY `frags` DESC, `name` ASC
    LIMIT 0, 4;') as $guild)
    $main_content .= '        <td style="width: 25%; text-align: center;">
            <a href="?subtopic=guilds&action=show&guild=' . $guild['name'] . '"><img src="guilds/' . ((!empty($guild['logo']) && file_exists('guilds/' . $guild['logo'])) ? $guild['logo'] : 'default_logo.gif') . '" width="64" height="64" border="0"/><br />' . $guild['name'] . '</a><br />' . $guild['frags'] . ' kills
        </td>';

$main_content .= '    </tr>
</table>';
 
Change
HTML:
<a href="?subtopic=guilds&action=show&guild=' . $guild['name'] . '">
to
HTML:
<a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '">
 
Change
HTML:
<a rel="nofollow" href="?subtopic=guilds&amp;action=show&amp;guild=' . $guild['name'] . '">
to
HTML:
<a rel="nofollow" href="?subtopic=guilds&amp;action=show&amp;guild=' . $guild['id'] . '">

It dosen't matter change that I've been trying both thoes lines.. :s
 
Then give me a link to your site.

Also you said "Guild war system", but the code you posted is for Top Guilds!
 
Then give me a link to your site.

Also you said "Guild war system", but the code you posted is for Top Guilds!


oh.. Im so stupid this don't even got with the war system to do -.- It's only the Most Powerfull Guilds script that don't work.

Thiss is my homepage for now.. 85.227.212.208
 
Back
Top