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

MyAAC problem

Gubailovo

Well-Known Member
Joined
Dec 19, 2013
Messages
407
Solutions
2
Reaction score
62
I use the names of vocations on the server in my language
I have to change the encoding from UTF-8 to ANSI.
because of this i am getting several errors
for example in highscores it gives me this errorC:\xampp\htdocs\1098serverport7179\system\pages\highscores.php on line 355
PHP:
if($config['highscores_vocation_box'])
{
    echo
    '<table border="0" width="100%" cellpadding="4" cellspacing="1">
        <tr bgcolor="' . $config['vdarkborder'] . '">
            <td class="white"><b>Choose a vocation</b></td>
        </tr>
        <tr bgcolor="'.$config['lightborder'].'">
            <td>
                <a href="' . getLink('highscores') . '/' . $list . '" class="size_xs">[ALL]</A><BR>';
                for($i = 1; $i <= $config['vocations_amount']; $i++) {
                    echo '<a href="' . getLink('highscores') . '/' . $list . '/' . strtolower($config_vocations[$i]) . '" class="size_xs">' . $config_vocations[$i] . '</a><br/>';
                }
        echo '
            </td>
        </tr>
    </table>';
}
is there a solution? I would not like to delete this block of vocations.
 
You still didn't post the error, you've posted the line where it occurs, tried to use my magic ball to find the issue, try this:

PHP:
if($config['highscores_vocation_box'])
{
    echo
    '<table border="0" width="100%" cellpadding="4" cellspacing="1">
        <tr bgcolor="' . $config['vdarkborder'] . '">
            <td class="white"><b>Choose a vocation</b></td>
        </tr>
        <tr bgcolor="'.$config['lightborder'].'">
            <td>
                <a href="' . getLink('highscores') . '/' . $list . '" class="size_xs">[ALL]</A><BR>';
                for($i = 1; $i <= $config['vocations_amount']; $i++) {
                    echo '<a href="' . getLink('highscores') . '/' . $list . '/' . mb_strtolower($config_vocations[$i]) . '" class="size_xs">' . $config_vocations[$i] . '</a><br/>';
                }
        echo '
            </td>
        </tr>
    </table>';
}
 
Back
Top