How to convert this to MySQL r39-6>?
#6

Код:
public MySQLCheckClan(sqlclanname[])
{
	new query[128];
	new escstr[MAX_PLAYER_NAME];
	new rows, fields;
	mysql_real_escape_string(sqlclanname, escstr, SQL, MAX_PLAYER_NAME);
	format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `Tag` = '%s'", escstr);
	mysql_query(SQL, query);
	
	cache_get_data(rows, fields);

	if (!rows)
	{
		return 0;
	}
	else
	{
		new intid = cache_get_row_int(0, 0);
		return intid;
	}
}
Reply


Messages In This Thread
How to convert this to MySQL r39-6>? - by Belengher - 31.01.2017, 08:41
Re: How to convert this to MySQL r39-6>? - by Belengher - 31.01.2017, 13:21
Re: How to convert this to MySQL r39-6>? - by AndreiWow - 31.01.2017, 13:51
Re: How to convert this to MySQL r39-6>? - by Belengher - 31.01.2017, 13:59
Re: How to convert this to MySQL r39-6>? - by AndreiWow - 31.01.2017, 14:04
Re: How to convert this to MySQL r39-6>? - by Rdx - 31.01.2017, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)