StrickenKid's MYSQL Issue
#5

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;
			}
Reply


Messages In This Thread
StrickenKid's MYSQL Issue - by SkyWinder - 26.07.2012, 19:22
Re: StrickenKid's MYSQL Issue - by Benjo - 26.07.2012, 20:53
Re: StrickenKid's MYSQL Issue - by SkyWinder - 27.07.2012, 15:58
Re: StrickenKid's MYSQL Issue - by Benjo - 27.07.2012, 16:30
Re: StrickenKid's MYSQL Issue - by SkyWinder - 27.07.2012, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)