Mysql help
#1

Hello i want to make this command,
To show me the name of player who have "Leader" = 2
But not working i don't know very good mysql,

Код:
	if(strcmp(cmd, "/leader2", true) == 0)
	{
mysql_query("SELECT NULL FROM players WHERE Leader=2");
		mysql_store_result();
		mysql_free_result();
		new result[50];
		mysql_fetch_field_row(result,"username");
	    format(string, sizeof(string), " %s Leader 2",result);
		SendClientMessage(playerid,-1,string);
}
Reply


Messages In This Thread
Mysql help - by zeth98 - 13.06.2015, 10:29
Re: Mysql help - by zeth98 - 13.06.2015, 13:10
Re: Mysql help - by Konstantinos - 13.06.2015, 13:14
Re: Mysql help - by zeth98 - 13.06.2015, 13:39
Re: Mysql help - by Konstantinos - 13.06.2015, 13:46
Re: Mysql help - by zeth98 - 13.06.2015, 14:01

Forum Jump:


Users browsing this thread: 4 Guest(s)