[Tutorial] MySQL Threaded queries with y_inline
#17

Code:
inline OnAccountCheckStatus(pid)
	{
		#pragma unused pid
		if(cache_num_rows())
		{
			banned = true; 
			cache_get_field_content(0, "playerBanReason", playerBanReason);
			cache_get_field_content(0, "playerBannedBy", playerBannedBy);
			playerBanDate = cache_get_field_content_int(0, "playerBanDate");
		}
		else format(playerBanReason, 40, "asdasda");
	}
	mysql_format(conn, string, sizeof(string), "SELECT playerBanReason, playerBanDate, playerBannedBy FROM %s WHERE playerNameBanned = \"%e\" LIMIT 1",Table_Bans,ReturnName(playerid));
	print(string);
	mysql_tquery_inline(conn, string, using inline OnAccountCheckStatus, "");
It doesn't work for me, it isn't called i think. The function has no effect, what is in inline function isn't executed.
Reply


Messages In This Thread
MySQL Threaded queries with y_inline - by Jay_ - 03.12.2014, 22:26
Re: MySQL Threaded queries with y_inline - by PT - 04.12.2014, 08:53
Re: MySQL Threaded queries with y_inline - by Lordzy - 04.12.2014, 13:02
Re: MySQL Threaded queries with y_inline - by Kaperstone - 04.12.2014, 13:26
Re: MySQL Threaded queries with y_inline - by maddinat0r - 04.12.2014, 14:48
Re: MySQL Threaded queries with y_inline - by iReacheR - 04.12.2014, 15:38
Re: MySQL Threaded queries with y_inline - by Lordzy - 04.12.2014, 15:59
Re: MySQL Threaded queries with y_inline - by Jay_ - 04.12.2014, 16:02
Re: MySQL Threaded queries with y_inline - by Jay_ - 08.12.2014, 10:44
Re: MySQL Threaded queries with y_inline - by rickisme - 08.12.2014, 19:19
Re: MySQL Threaded queries with y_inline - by maddinat0r - 09.12.2014, 14:53
Re: MySQL Threaded queries with y_inline - by rickisme - 10.12.2014, 15:06
Re: MySQL Threaded queries with y_inline - by iReacheR - 14.01.2015, 22:46
Re: MySQL Threaded queries with y_inline - by PaulDinam - 15.01.2015, 09:40
Re: MySQL Threaded queries with y_inline - by im - 15.01.2015, 12:02
Re: MySQL Threaded queries with y_inline - by maddinat0r - 17.01.2015, 13:08
Re: MySQL Threaded queries with y_inline - by andyandyy8 - 14.02.2015, 20:33
Re: MySQL Threaded queries with y_inline - by Cypress - 22.02.2015, 22:26
Re: MySQL Threaded queries with y_inline - by kurta999 - 12.01.2017, 23:11
Re: MySQL Threaded queries with y_inline - by renatog - 12.01.2017, 23:40
Re: MySQL Threaded queries with y_inline - by Yaa - 22.01.2017, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)