27.11.2011, 06:09
This crashes the server. I used another plugin by blue g and it worked fine. i got vps and im using the r-6 debian 5 plugin
code is here
code is here
Код:
if(strlen(params) == 0 || strlen(params) > 24) return IRC_GroupSay(gGroupID,IRC_ADMIN, "4 Enter a valid User..");
new escname[200], msg[256], query[256];
mysql_real_escape_string(params, escname);
format(query, sizeof(query), "SELECT * FROM `bans` WHERE `name` = '%s' LIMIT 1 ", escname);
mysql_query(query);
mysql_store_result();
if (mysql_num_rows() == 0) return IRC_GroupSay(gGroupID,IRC_ADMIN,"1 Sorry, This user is not found in bans list.");
new banner[64], reason[256], bandate[64], index, line[50], buffer[149], banl[64], result[200];
if (mysql_retrieve_row())
{
mysql_fetch_field_row(banner,"banner");
mysql_fetch_field_row(reason,"reason");
mysql_fetch_field_row(banl,"banlength");
mysql_fetch_field_row(bandate,"bandate");
}
//// REST NOT SHOWN (DOESN'T CAUSE CRASH)

