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

AAC ZNOTE ACC 1.5 SVN - OTX

rexgandi

Member
Joined
Oct 22, 2011
Messages
170
Reaction score
9
Hello.
I have a problem with Guild War in Znote. I use Znote ACC 1.5 SVN and OTX 2.15 (distro TFS 0.3.7).
In game all work perfect, in data base - guild_wars i have: Guild Kills (1) , Enemy Kills (1) and this is true, but in website i have 0:2 on frags , not 1:1.
@Znote you now?

Look: 1:1 , not 0:2...
1642172262349.png

Part of code:

Lua:
    <table id="guildwarViewTable" class="table table-striped table-hover">
            <tr class="yellow">
                <th>Attacking Guild:</th>
                <th>Death Count:</th>
                <th>Defending Guild:</th>
            </tr>
                <?php
                foreach ($wardata as $wars) {
                    $guild_1_kills = 0;
                    $guild_2_kills = 0;
                    foreach (($killsdata[$wars['id']] ? $killsdata[$wars['id']] : array()) as $kill) {

                        if ($isOtx && $kill['guild_id'] == $wars['guild1'] || !$isOtx && $kill['killerguild'] == $wars['guild1'])
                            $guild_1_kills++;
                        else
                            $guild_2_kills++;
                    }
                    $url = url("guildwar.php?warid=". $wars['id']);
                    $guildname1 = url("guilds.php?name=". $wars['name1']);
                    $guildname2 = url("guilds.php?name=". $wars['name2']);
                    echo '<tr>';
                    echo '<td><a href="' . $guildname1 . '">'. $wars['name1'] .'</a></td>';
                    echo '<td>'. $guild_1_kills .' - ' . $guild_2_kills . '</td>';
                    echo '<td><a href="' . $guildname2 . '">'. $wars['name2'] .'</a></td>';
                    echo '<td><a href="' . $url . '">View</a></td>';
                    echo '</tr>';
                }
                ?>
        </table>
 
Last edited:
Top