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

Znote AAC 1.4 - [TFS 0.2.13+] & [TFS 0.3.6+/0.4]

I get this up on my website!
Code:
Players online: string(59) "SELECT COUNT(`player_id`) AS `value` FROM `players_online`;"
(query - SQL error)
Type: select_single (select single row from database)

Table 'otserv.players_online' doesn't exist

Could Anyone help me :)

Am using
The Forgotten Server v0.2.15
 
I get this up on my website!
Code:
Players online: string(59) "SELECT COUNT(`player_id`) AS `value` FROM `players_online`;"
(query - SQL error)
Type: select_single (select single row from database)

Table 'otserv.players_online' doesn't exist

Could Anyone help me :)

Am using
The Forgotten Server v0.2.15
In config.php, set TFS version to TFS_02 instead of TFS_10
 
If I want to delete a character I get the following error.

PHP:
tring(137) "INSERT INTO `znote_deleted_characters`(`original_account_id`, `character_name`, `time`, `done`) VALUES(4, "Test", (NOW() + INTERVAL ), 0)"
(query - SQL error)
Type: voidQuery (voidQuery is used for update, insert or delete from database)

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 0)' at line 1
 
Since I can not edit my post I have to post another one....

Sorry for this

When I go to my guilds and open a guild I get this error

PHP:
string(113) "SELECT `id`, `guild_id`, `enemy_id`, `status`, `begin`, `end` FROM `guild_wars` ORDER BY `begin` DESC LIMIT 0, 30"
(query - SQL error)
Type: select_multi (select multiple rows from database)

Table 'panamera.guild_wars' doesn't exist

When I try to add guild_wars to my db in php my admin it says not possible!
 
Code:
SQL-Befehl:


CREATE TABLE IF NOT EXISTS `znote_guild_wars` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `limit` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  FOREIGN KEY (`id`) REFERENCES `guild_wars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1
MySQL meldet: Dokumentation

#1005 - Can't create table 'panamera.znote_guild_wars' (errno: 150) (Details…)
 
If I want to delete a character I get the following error.

PHP:
tring(137) "INSERT INTO `znote_deleted_characters`(`original_account_id`, `character_name`, `time`, `done`) VALUES(4, "Test", (NOW() + INTERVAL ), 0)"
(query - SQL error)
Type: voidQuery (voidQuery is used for update, insert or delete from database)

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 0)' at line 1

I see one problem with Znote's code and there might be an error with your config.
In file config.php - on line 443:
Code:
$config['delete_character_interval'] = '3 DAY'; // Delay after user character delete request is executed eg. 1 DAY, 2 HOUR, 3 MONTH etc.

Make sure that this variable is set.

And the problem with Znote's code is:
In file users.php - on line 796:
Code:
mysql_insert('INSERT INTO `znote_deleted_characters`(`original_account_id`, `character_name`, `time`, `done`) VALUES(' . $original_acc_id . ', "' . $char_name . '", (NOW() + INTERVAL ' . Config('delete_character_interval') . '), 0)');

Change that line to:
Code:
mysql_insert('INSERT INTO `znote_deleted_characters`(`original_account_id`, `character_name`, `time`, `done`) VALUES(' . $original_acc_id . ', "' . $char_name . '", (NOW() + INTERVAL ' . config('delete_character_interval') . '), 0)');
 
qQGwT1N.png
 
I have done it halfway :/

I have changed the group to [3]

UGpPO5B.png


I fixed it! Thanks =)
 
Last edited:
image]


So i unpacked the aac into Wamp's www folder and got this, Do i need to use Uniservers or did i just make a silly mistake?
(Yes, I am a newbie)
Regards
 
Hi,

I m running a TFS 1.0, and it was already with tables, so when I try to run the convert system I got the following error:

Converting accounts and characters to work with Znote AAC:


Total accounts detected: 757.
Znote compatible accounts detected: 8.
Old accounts detected: 757.


Notice: Array to string conversion in F:\xampp\htdocs\special\database2znoteaac.php on line 87

Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in F:\xampp\htdocs\engine\database\connect.php on line 265
string(56) "SELECT `password` FROM `accounts` WHERE `id` = LIMIT 1;"
(query - SQL error)
Type: select_single (select single row from database)

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1

What I have done wrong?
 
Hi,

I m running a TFS 1.0, and it was already with tables, so when I try to run the convert system I got the following error:

Converting accounts and characters to work with Znote AAC:


Total accounts detected: 757.
Znote compatible accounts detected: 8.
Old accounts detected: 757.


Notice: Array to string conversion in F:\xampp\htdocs\special\database2znoteaac.php on line 87

Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in F:\xampp\htdocs\engine\database\connect.php on line 265
string(56) "SELECT `password` FROM `accounts` WHERE `id` = LIMIT 1;"
(query - SQL error)
Type: select_single (select single row from database)

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1

What I have done wrong?

This version does not support TFS 1.0. You must use this one:

https://github.com/Znote/ZnoteAAC/archive/master.zip
 
Back
Top