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...
Part of code:
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...
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: