[HELP]MySQL errors When Compiling
#1

pawn Код:
pawno\include\a_mysql.inc(36) : error 001: expected token: "-identifier-", but found "("
pawno\include\a_mysql.inc(37) : error 010: invalid function or declaration
pawno\include\a_mysql.inc(75) : warning 201: redefinition of constant/macro (symbol "mysql_reload(%0)")
pawno\include\a_mysql.inc(111) : error 021: symbol already defined: "mysql_connect"
pawno\include\a_mysql.inc(111) : error 025: function heading differs from prototype
pawno\include\a_mysql.inc(111) : error 025: function heading differs from prototype
pawno\include\a_mysql.inc(111) : fatal error 107: too many error messages on one line
I got these errors when compiling the gm..
line 36:
PHP код:
static
    
mysql //This variable will be used to manage our database
    

(the MySQL written was on the line 36)
line 37:
PHP код:
static
    
mysql //This variable will be used to manage our database
    

(the ";" is on 37)
line 75:
PHP код:
public OnFilterScriptExit()
{
    
mysql_close();//close Mysql
    
IRC_Quit(gBotID[0], "Good Bye!"); // Disconnect the first bot
    
IRC_DestroyGroup(gGroupID);// Destroy the group
    
return 1;

The IRC_DestroyGroup(gGroupID); is on 75)
line 111:
PHP код:
forward AutoJoinChannels(botid);
public 
AutoJoinChannels(botid)
{
    new
        
string128 ], data256 ], query[128];
    
format(mysqlquerysizeof(query), "SELECT * FROM `autojoin`");
    
mysql_store_result();
    if (
mysql_num_rows() > 0)
    {
        new 
count 0;
        while(
mysql_fetch_row(data))
        {
            
mysql_fetch_field("channel",data);
            
IRC_JoinChannel(botiddata);
            
printf("Channel: %s"data);
            
count++;
        }
        
format(stringsizeof( string ), " 12* Version: %s"systemv);
        
IRC_GroupSay(gGroupIDIRC_CHANNELstring);
         if(!
mysql_ping())
         {
            
IRC_GroupSay(gGroupIDIRC_CHANNEL"10* My7SQL: Connection is alive!");
         }
         else
        {
            
IRC_GroupSay(gGroupIDIRC_CHANNEL"10* My7SQL: Connection is dead!");
        }
        
format(stringsizeof( string ), "13* Auto-Join: %d auto-join channels saved."count);
        
IRC_GroupSay(gGroupIDIRC_CHANNELstring);
        
format(stringsizeof( string ), "11* Admins: I've %d admin(s)."CountTotalAdmins());
        
IRC_GroupSay(gGroupIDIRC_CHANNELstring);
        
format(stringsizeof( string ), "14* Plugins: Currently 4 plugins are loaded.");
        
IRC_GroupSay(gGroupIDIRC_CHANNELstring);
    }
    
mysql_free_result();

(the mysql_store_result(); is on 111)
Reply


Messages In This Thread
[HELP]MySQL errors When Compiling - by LazyB0y - 17.03.2015, 19:01
Re: [HELP]MySQL errors When Compiling - by Misiur - 17.03.2015, 19:55
Re: [HELP]MySQL errors When Compiling - by LazyB0y - 17.03.2015, 19:59
Re: [HELP]MySQL errors When Compiling - by Misiur - 17.03.2015, 21:46
Re: [HELP]MySQL errors When Compiling - by LazyB0y - 18.03.2015, 07:56
Re: [HELP]MySQL errors When Compiling - by LazyB0y - 18.03.2015, 10:49
Re: [HELP]MySQL errors When Compiling - by iSkyline - 18.03.2015, 12:24
Re: [HELP]MySQL errors When Compiling - by LazyB0y - 18.03.2015, 12:31
AW: Re: [HELP]MySQL errors When Compiling - by Kaliber - 18.03.2015, 12:36
Re: [HELP]MySQL errors When Compiling - by LazyB0y - 18.03.2015, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)