Olá Galerinha do TK , eu estou tendo umas dificuldades na parte de Guild Wars no Nicaw ACC são os seguintes erros:
Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\wars.php on line 18
na line 18 a escrita é : foreach($SQL->query('SELECT * FROM `guild_wars` WHERE `status` IN (1,4) OR ((`end` >= (UNIX_TIMESTAMP() - 604800) OR `end` = 0) AND `status` IN (0,5));') as $war)
No servidor o sistema funciona normalmente como é na maioria dos otservs , o unico problema é que na wars.php aparece isso que no caso quando a pessoa queira olhar o frags da guild no website não é possivel ver porque dá esse erro. Percebi também que o nicaw que estou usando para a versão 8.60 é mais leve que o gesior por isso estou utilizando-o mais percebi também que a linguagem do gesior para o nicaw é diferente nenhum arquivo do gesior funciona no nicaw se não utilizar as configurações do nicaw que no caso seria essas:
ESSA NO INICIO:
<?php
/*
Copyright © 2007 - 2009 Nicaw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
include ("include.inc.php");
$ptitle="Guilds - $cfg[server_name]";
include ("header.inc.php");
$SQL = AAC::$SQL;
?>
NO FIM
?>
</div>
<div class="bot"></div>
</div>
<?php include('footer.inc.php');?>
Bem acho que expliquei mais ou menos , espero que alguém do Fórum possa me ajudar.