mysql help
#1

I need help with admins in mysql..

Only Online admins :

Код:
	if (typ == 1)
	{
		mysql_format(handle, query, sizeof(query), "SELECT * FROM `ASystem` WHERE Title >=2 AND logged=1  ORDER BY hodnost DESC");
		format(caption, sizeof(caption), "ONLINE ADMINS");
	}
ALL Admins:

Код:
	else if (typ == 0)
	{
		mysql_format(handle, query, sizeof(query), "SELECT * FROM `ASystem` WHERE Title >=2 ORDER BY hodnost DESC");
		format(caption, sizeof(caption), "ADMIN TEAM ALL");
	}
but if send /admins so show only show ALL Admins
Reply
#2

You are saving the login state in your db? why?? just use a local variable, i guess u don't need it outside of your samp server, right?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)