27.07.2012, 16:39
ok here is my script
Код:
mysql_store_result(); new num_rows = mysql_num_rows(); printf("This is the Amount of Num Rows : %d", num_rows); if(num_rows > 0) { //Match found - Remove Player new bannedname[24]; mysql_fetch_field("username", bannedname); new adminname[24]; mysql_fetch_field("adminname", adminname); new reason[128]; mysql_fetch_field("reason", reason); new string[128]; \ format(string, sizeof(string), "You are banned from this server under the name %s by Admin %s for %s", bannedname, adminname, reason); SendClientMessage(spareid, COLOR_CYAN, string); Kick(spareid); mysql_free_result(); return 1; } else { print("No Results Found"); // Player is not banned mysql_free_result(); return 1; }