MySQL problem
#12

Sure
Код:
MySQLFetchAcctSingle(sqlplayerid, sqlvalname[], sqlresult[])
{
	new query[128];
	format(query, sizeof(query), "SELECT %s FROM Players WHERE id = %d LIMIT 1", sqlvalname, sqlplayerid);
	mysql_query(query);
	//if (DEBUG) SQLLog(query);
	mysql_store_result();
	if(mysql_fetch_row(sqlresult)==1)
	{
		mysql_free_result();
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
MySQL problem - by Mr Artur. - 09.07.2010, 20:01
Re: MySQL problem - by Mr Artur. - 10.07.2010, 19:07
Re: MySQL problem - by Grim_ - 10.07.2010, 19:11
Re: MySQL problem - by Mr Artur. - 11.07.2010, 08:38
Re: MySQL problem - by Grim_ - 11.07.2010, 08:42
Re: MySQL problem - by Mr Artur. - 11.07.2010, 08:54
Re: MySQL problem - by Grim_ - 11.07.2010, 08:55
Re: MySQL problem - by Mr Artur. - 11.07.2010, 08:56
Re: MySQL problem - by Grim_ - 11.07.2010, 08:59
Re: MySQL problem - by Mr Artur. - 11.07.2010, 09:03
Re: MySQL problem - by Grim_ - 11.07.2010, 09:06
Re: MySQL problem - by Mr Artur. - 11.07.2010, 09:06

Forum Jump:


Users browsing this thread: 3 Guest(s)