Samp clans won't save / load
#1

Hello, i created a clan system with a few commands and a few functions but they won't save and load.

Here is the /createclan command:

PHP код:
CMD:createclan(cmdidplayeridparams[])
{
    if(
UserStats[playerid][Kills] < 1000) return SendClientMessage(playeridCOLOR_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(playeridCOLOR_RED"[USAGE]: /createclan [clanname]");
    
    
cache_get_row_count(rows);
    if(
cache_num_rows() == 0)
    {
        
mysql_format(DatabaseDB_Querysizeof(DB_Query), "INSERT INTO `clans` (`ClanName`, `Leader`, `Official`) VALUES ('%e', '%e', '0')"clannameGetName(playerid));
        
mysql_tquery(DatabaseDB_Query);
        
        
format(stringsizeof(string), "[SERVER]: You have created a unofficial clan named %s."clanname);
        
SendClientMessage(playeridCOLOR_REDstring);
        
format(stringsizeof(string), "Clan Name: %s, Official: No"clanname);
        
SendClientMessage(playeridCOLOR_REDstring);
        
UserStats[playerid][Clan] = 1;
    }
    else
    {
        
SendClientMessage(playeridCOLOR_RED"[SERVER]: That clan name is already registered by someone else.");
    }
    
SaveClans();
    return 
1;

So when a player creates a clan /createclan it's going to be official, an lead admin has to set it to official

here is the command: /setofficial

PHP код:
CMD<AD4>:setofficial(cmdidplayeridparams[])
{
    new 
FloatxFloatyFloatz;
    new 
query[600], string[300], targetidrows;
    new 
clanname[32], clanidclancolorrank1[32], rank2[32], rank3[32], rank4[32], rank5[32];
    new 
clanspawn GetPlayerPos(playeridxyz);
    
clancolor = (clancolor << 8) | 0xFF;
    
cache_get_row_count(rows);
    
mysql_format(Databasequerysizeof(query), "SELECT `ClanID` from `clans` WHERE `ClanName` = '%e'"clanname);
    new 
Cache:result mysql_query(Databasequery);
    if(
sscanf(params"dxds[32]s[32]s[32]s[32]s[32]"clanidclancolortargetidrank1rank2rank3rank4rank5)) return SendClientMessage(playeridCOLOR_RED"[USAGE]: /setofficial [clanid] [color] [leader] [rank1] [rank2] [rank3] [rank4] [rank5]");
    if(
cache_num_rows() == 0)
    {
        
format(stringsizeof(string), "[SERVER]: Faction ID %d has became official by administrator %s"clanidGetName(playerid));
        
SendMessageToAdmins(COLOR_PINKstring);
        
SaveClan(clanid);
        
SetPlayerColor(targetidclancolor);
    }
    else
    {
        
SendClientMessage(playeridCOLOR_RED"[ERROR]: That clan does not exist.");
    }
    
cache_delete(result);
    return 
1;

Now when i type this nothing updates to the database, here are the functions:

PHP код:
stock SaveClans()
{
    for (new 
1MAX_CLANS++)
    {
        
SaveClan(i);
    }
    return 
1;
}
stock SaveClan(id)
{
    new 
query[800];
    
mysql_format(Databasequerysizeof(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(Databasequery);
    return 
1;

PHP код:
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 
rowsfields;
    
cache_get_row_count(rows);
    
cache_get_field_count(fields);
    
    
mysql_format(Databasequerysizeof(query), "SELECT * FROM `clans` WHERE `ClanID`='%e' LIMIT 1;"clanid);
    new 
Cache:result mysql_query(Databasequery);
    
    
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;

Just to let you know,

i put LoadClans(); OnGameModeInIt
i put SaveClans(); OnGameModeExit
Reply
#2

What does it say in the mysql log?
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_log

Also do not rely on OnGameModeExit
Quote:
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.

Reply
#3

Quote:
Originally Posted by victory88
Посмотреть сообщение
What does it say in the mysql log?
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_log

Also do not rely on OnGameModeExit
Can't send u the logs rn im on my phone, where do i put SaveClans(); tho?
Reply
#4

You should've kept this to the other thread as this will be much related to the issue you're facing in there.

SaveClans should be fired every 5-10 minutes or something, but more likely only when a new clan has been made, or a player from a clan does something that changes what the contents of the clan DB would have.

E.g. if they completed a mission, a DM, or deposited money into a clan safe, or such.


So in this sense, that function, should only be fired if the clan is created, leadership is changed, color is changed, or the rank names are messed with.



What is in the DB, what you are saving to the DB, and what's coming back out.

I'd hazard a guess that you've not got oddly formatted cells, which may make it look like it's not saving, as the output that's coming out is incorrect and stopping your setup working.

This can also occur on the creation of the initial clan, and even though you may not be seeing it, the result will, and it will come out garbled.




Try using printf and print everywhere. Output the results you are getting, and saving, to the log or the screen so you can see them.

Even change the variables in the rank command and see what it's actually able to hold. Instead of '0', a string should be able to be null, and I'd chuck in words, and numbers to see what comes back when you reload it, or output those to the log.
Reply
#5

Quote:
Originally Posted by willbedie
Посмотреть сообщение
PHP код:
    cache_get_row_count(rows);
    if(
cache_num_rows() == 0)
    {
        
mysql_format(DatabaseDB_Querysizeof(DB_Query), "INSERT INTO `clans` (`ClanName`, `Leader`, `Official`) VALUES ('%e', '%e', '0')"clannameGetName(playerid));
        
mysql_tquery(DatabaseDB_Query);
        
        
format(stringsizeof(string), "[SERVER]: You have created a unofficial clan named %s."clanname);
        
SendClientMessage(playeridCOLOR_REDstring);
        
format(stringsizeof(string), "Clan Name: %s, Official: No"clanname);
        
SendClientMessage(playeridCOLOR_REDstring);
        
UserStats[playerid][Clan] = 1;
    }
    else
    {
        
SendClientMessage(playeridCOLOR_RED"[SERVER]: That clan name is already registered by someone else.");
    } 
1) No active cache. You did not execute any query and just try to get the amount of rows out of nowhere.
2) If any error occurs for whatever reason, it will not insert to database but you will notify the player that his clan was created successfully.

Quote:
Originally Posted by willbedie
Посмотреть сообщение
PHP код:
CMD:createclan(cmdidplayeridparams[])
{
    ....
    
SaveClans();
    return 
1;

PHP код:
stock SaveClans()
{
    for (new 
1MAX_CLANS++)
    {
        
SaveClan(i);
    }
    return 
1;
}
stock SaveClan(id)
{
    new 
query[800];
    
mysql_format(Databasequerysizeof(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(Databasequery);
    return 
1;

Absolutely no reason for this.
1) You update every clan whenever a clan is created. What do other clans have to do with the one being created? Nothing at all.
2) Your loop starts from value 1. Why? Arrays start from index 0. This is utterly something very old scripts used and most new members do the same nowadays.
3) Your INSERT query is there to set any value you want. Executing an UPDATE query afterwards is meaningless.
4) Why do you have another table `ClanID`? The first column of the table `clans` should have been the `clanid`.
5) Again, in LoadClans. Why do you call cache functions when no active cache? It must be either AFTER mysql_query or in a callback set by mysql_tquery/mysql_pquery. Not before, not in random places. Also `clanid` will always be 0 and it won't retrieve all the rows but the first from the database. You need a loop there.
Reply
#6

Here are mysql logs:

PHP код:
[16:45:53] [ERRORcache_get_row_countno active cache
[16:45:53] [WARNINGmysql_connectno password specified
[16:53:00] [ERRORcache_get_row_countno active cache
[16:53:00] [ERRORcache_get_row_countno active cache
[16:53:00] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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] [ERRORerror #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 
Reply
#7

Код:
near 'Rank3` = '0',
checking that log over could help you out...


You've mixed up your ' and ` on Rank 2 before it...

You're using ` ` and all of a sudden, rank 2 has an '.
Reply
#8

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Код:
 'Rank3` =
checking that log over could help you out...


You've mixed up your ' and `...
omfg lol i didn't even notice that.. it happens everytime
Reply
#9

Just check where exactly it is, it's reporting rank 3, but it's in rank 2.
Reply
#10

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Just check where exactly it is, it's reporting rank 3, but it's in rank 2.
Yeah it's in rank 2 i've fixed it, but is there something wrong with LoadClans too?


PHP код:
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 
rowsfields;
    
cache_get_row_count(rows);
    
cache_get_field_count(fields);
    
    
mysql_format(Databasequerysizeof(query), "SELECT * FROM `clans` WHERE `ClanID`='%e' LIMIT 1;"clanid);
    new 
Cache:result mysql_query(Databasequery);
    
    
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;

because when i /createclan in-game it creates and the data inserts into mysql database but whenever i start the gamemode it says no clans were loaded from the database even tho there are tons of clans in the database.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)