17.03.2015, 19:01
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
line 36:
PHP код:
static
mysql //This variable will be used to manage our database
;
line 37:
PHP код:
static
mysql //This variable will be used to manage our database
;
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;
}
line 111:
PHP код:
forward AutoJoinChannels(botid);
public AutoJoinChannels(botid)
{
new
string[ 128 ], data[ 256 ], query[128];
format(mysql, query, sizeof(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(botid, data);
printf("Channel: %s", data);
count++;
}
format(string, sizeof( string ), " 12* Version: %s", systemv);
IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
if(!mysql_ping())
{
IRC_GroupSay(gGroupID, IRC_CHANNEL, "10* My7SQL: Connection is alive!");
}
else
{
IRC_GroupSay(gGroupID, IRC_CHANNEL, "10* My7SQL: Connection is dead!");
}
format(string, sizeof( string ), "13* Auto-Join: %d auto-join channels saved.", count);
IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
format(string, sizeof( string ), "11* Admins: I've %d admin(s).", CountTotalAdmins());
IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
format(string, sizeof( string ), "14* Plugins: Currently 4 plugins are loaded.");
IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
}
mysql_free_result();
}