CMD:createclan(cmdid, playerid, params[])
{
if(UserStats[playerid][Kills] < 1000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You must have 1000+ kills to create a clan.");
new clanname[32], string[300], DB_Query[600], rows;
if(sscanf(params, "s[32]", clanname)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /createclan [clanname]");
cache_get_row_count(rows);
if(cache_num_rows() == 0)
{
mysql_format(Database, DB_Query, sizeof(DB_Query), "INSERT INTO `clans` (`ClanName`, `Leader`, `Official`) VALUES ('%e', '%e', '0')", clanname, GetName(playerid));
mysql_tquery(Database, DB_Query);
format(string, sizeof(string), "[SERVER]: You have created a unofficial clan named %s.", clanname);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "Clan Name: %s, Official: No", clanname);
SendClientMessage(playerid, COLOR_RED, string);
UserStats[playerid][Clan] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "[SERVER]: That clan name is already registered by someone else.");
}
SaveClans();
return 1;
}
CMD<AD4>:setofficial(cmdid, playerid, params[])
{
new Float: x, Float: y, Float: z;
new query[600], string[300], targetid, rows;
new clanname[32], clanid, clancolor, rank1[32], rank2[32], rank3[32], rank4[32], rank5[32];
new clanspawn = GetPlayerPos(playerid, x, y, z);
clancolor = (clancolor << 8) | 0xFF;
cache_get_row_count(rows);
mysql_format(Database, query, sizeof(query), "SELECT `ClanID` from `clans` WHERE `ClanName` = '%e'", clanname);
new Cache:result = mysql_query(Database, query);
if(sscanf(params, "dxds[32]s[32]s[32]s[32]s[32]", clanid, clancolor, targetid, rank1, rank2, rank3, rank4, rank5)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /setofficial [clanid] [color] [leader] [rank1] [rank2] [rank3] [rank4] [rank5]");
if(cache_num_rows() == 0)
{
format(string, sizeof(string), "[SERVER]: Faction ID %d has became official by administrator %s", clanid, GetName(playerid));
SendMessageToAdmins(COLOR_PINK, string);
SaveClan(clanid);
SetPlayerColor(targetid, clancolor);
}
else
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]: That clan does not exist.");
}
cache_delete(result);
return 1;
}
stock SaveClans()
{
for (new i = 1; i < MAX_CLANS; i ++)
{
SaveClan(i);
}
return 1;
}
stock SaveClan(id)
{
new query[800];
mysql_format(Database, query, sizeof(query), "UPDATE `clans` SET `ClanName` = '%e', `ClanColor` = '%e', `ClanSpawn` = '%e', `Leader` = '%e', `Official` = '%e', `Rank1` = '%e', `Rank2' = %e', `Rank3` = '%e', `Rank4` = '%e', `Rank5` = '%e' WHERE ClanID = '%i'",
ClanInfo[id][ClanName], ClanInfo[id][ClanColor], ClanInfo[id][ClanSpawn], ClanInfo[id][Leader], ClanInfo[id][Official], ClanInfo[id][Rank1], ClanInfo[id][Rank2], ClanInfo[id][Rank3], ClanInfo[id][Rank4], ClanInfo[id][Rank5], ClanInfo[id][ClanID]);
mysql_tquery(Database, query);
return 1;
}
forward LoadClans();
public LoadClans()
{
new query[1500], clanid;
if(cache_num_rows() == 0) return printf("[SERVER]: No clans were loaded from the MYSQL Database.");
new rows, fields;
cache_get_row_count(rows);
cache_get_field_count(fields);
mysql_format(Database, query, sizeof(query), "SELECT * FROM `clans` WHERE `ClanID`='%e' LIMIT 1;", clanid);
new Cache:result = mysql_query(Database, query);
cache_get_value_name_int(clanid, "ClanID", ClanInfo[clanid][ClanID]);
cache_get_value_name(clanid, "ClanName", ClanInfo[clanid][ClanName]);
cache_get_value_name(clanid, "ClanColor", ClanInfo[clanid][ClanColor]);
cache_get_value_name_float(clanid, "ClanSpawn", ClanInfo[clanid][ClanSpawn]);\
cache_get_value_name(clanid, "Leader", ClanInfo[clanid][Leader]);
cache_get_value_name(clanid, "Official", ClanInfo[clanid][Official]);
cache_get_value_name_int(clanid, "Rank1", ClanInfo[clanid][Rank1]);
cache_get_value_name_int(clanid, "Rank2", ClanInfo[clanid][Rank2]);
cache_get_value_name_int(clanid, "Rank3", ClanInfo[clanid][Rank3]);
cache_get_value_name_int(clanid, "Rank4", ClanInfo[clanid][Rank4]);
cache_get_value_name_int(clanid, "Rank5", ClanInfo[clanid][Rank5]);
cache_delete(result);
printf("[SERVER] %d clans were loaded from the MYSQL Database", rows);
return 1;
}
OnGameModeExit This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command or pressing the close-button on the Windows console. |
What does it say in the mysql log?
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_log Also do not rely on OnGameModeExit |
PHP код:
|
PHP код:
PHP код:
|
[16:45:53] [ERROR] cache_get_row_count: no active cache
[16:45:53] [WARNING] mysql_connect: no password specified
[16:53:00] [ERROR] cache_get_row_count: no active cache
[16:53:00] [ERROR] cache_get_row_count: no active cache
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
[16:53:00] [ERROR] error #1064 while executing query "UPDATE `clans` SET `ClanName` = '', `ClanColor` = '', `ClanSpawn` = '', `Leader` = '', `Official` = '0', `Rank1` = '0', `Rank2' = 0', `Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Rank3` = '0', `Rank4` = '0', `Rank5` = '0' WHERE ClanID = '0'' at line 1
near 'Rank3` = '0',
Код:
'Rank3` = You've mixed up your ' and `... |
Just check where exactly it is, it's reporting rank 3, but it's in rank 2.
|
forward LoadClans();
public LoadClans()
{
new query[1500], clanid;
if(cache_num_rows() == 0) return printf("[SERVER]: No clans were loaded from the MYSQL Database.");
new rows, fields;
cache_get_row_count(rows);
cache_get_field_count(fields);
mysql_format(Database, query, sizeof(query), "SELECT * FROM `clans` WHERE `ClanID`='%e' LIMIT 1;", clanid);
new Cache:result = mysql_query(Database, query);
cache_get_value_name_int(clanid, "ClanID", ClanInfo[clanid][ClanID]);
cache_get_value_name(clanid, "ClanName", ClanInfo[clanid][ClanName]);
cache_get_value_name(clanid, "ClanColor", ClanInfo[clanid][ClanColor]);
cache_get_value_name_float(clanid, "ClanSpawn", ClanInfo[clanid][ClanSpawn]);\
cache_get_value_name(clanid, "Leader", ClanInfo[clanid][Leader]);
cache_get_value_name(clanid, "Official", ClanInfo[clanid][Official]);
cache_get_value_name_int(clanid, "Rank1", ClanInfo[clanid][Rank1]);
cache_get_value_name_int(clanid, "Rank2", ClanInfo[clanid][Rank2]);
cache_get_value_name_int(clanid, "Rank3", ClanInfo[clanid][Rank3]);
cache_get_value_name_int(clanid, "Rank4", ClanInfo[clanid][Rank4]);
cache_get_value_name_int(clanid, "Rank5", ClanInfo[clanid][Rank5]);
cache_delete(result);
printf("[SERVER] %d clans were loaded from the MYSQL Database", rows);
return 1;
}