help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help please (
/showthread.php?tid=629315)
help please -
itachi - 24.02.2017
Admins show help.........
IF TYP 0 = show admins online , but admins online not show
IF TYP 1 = show all admins server
Код:
new vypis[(MAX_PLAYER_NAME+32)*30+16];
new query[80];
new caption[16];
if (typ == 0)
{
mysql_format(handle, query, sizeof(query), "SELECT * FROM `ASystem` WHERE hodnost >=2 AND prihlaseny=1 ORDER BY hodnost DESC");
format(caption, sizeof(caption), "Online admini");
}
else if (typ == 1)
{
mysql_format(handle, query, sizeof(query), "SELECT * FROM `ASystem` WHERE hodnost >=2 ORDER BY hodnost DESC");
format(caption, sizeof(caption), "Vљetci admini");
}
Re: help please -
Vince - 24.02.2017
I hope you realize that you need to actually send the query?
Re: help please -
iKarim - 24.02.2017
And you should really use English as the field names and variable names.
Re: help please -
Private200 - 24.02.2017
Quote:
Originally Posted by Vince
I hope you realize that you need to actually send the query?
|
If he is making this kind of question, I am guessing he hasn't realized that.