Server restart
#5

before.
You mean
Код:
public MySQLCheckAccount(sqlplayersname[])
{
	new query[128];
	new escstr[MAX_PLAYER_NAME];
	mysql_real_escape_string(sqlplayersname, escstr);
	format(query, sizeof(query), "SELECT `ID` FROM users WHERE `name` = '%s'", escstr);
	mysql_query(SQL,query);
	mysql_store_result();
	if (mysql_num_rows()==0)
	{
	    mysql_free_result();
		return 0;
	}
	else
	{
		new strid[32];
		new intid;
		mysql_fetch_row(strid);
		intid = strval(strid);
	    mysql_free_result();
		return intid;
	}
}
?
Reply


Messages In This Thread
Server restart - by Addons - 05.04.2016, 13:55
Re: Server restart - by Harty - 05.04.2016, 13:56
Re: Server restart - by Addons - 05.04.2016, 14:03
Re: Server restart - by AndySedeyn - 05.04.2016, 14:07
Re: Server restart - by Addons - 05.04.2016, 14:20
Re: Server restart - by AndySedeyn - 05.04.2016, 14:22
Re: Server restart - by Addons - 05.04.2016, 14:34
Re: Server restart - by Morpheine - 05.04.2016, 17:14
Re: Server restart - by Addons - 05.04.2016, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)