y_command sensitivity - 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: y_command sensitivity (
/showthread.php?tid=496468)
y_command sensitivity -
CroM256 - 22.02.2014
Hi,
when i want to use command i have to use small letters, example, if i type /admins command will work but if I type /Admins or /aDmins command will not work...I tried to change something in include file but it's not working
command:
Код:
CMD:admins(playerid, params[])
{
if(sscanf(params, "")) {}
new admin = 0;
new str[256];
foreach(petla, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
format(str,sizeof(str),""COL_YELLOW"%sAdmin level "COL_RED"|"COL_YELLOW" %d"COL_RED" |"COL_YELLOW" %s [ID: %d]\n", str, PlayerInfo[i][pAdmin], NickName(i), playerid);
admin++;
}
}
if(admin >= 1)
ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "Admins Online:", str, "Close", "");
if(admin == 0)
SCM(playerid, COLOR_GREY, "No admins online.");
return 1;
}
Re: y_command sensitivity -
Konstantinos - 22.02.2014
That command is ZCMD, not y_commands. That would be y_commands:
pawn Код:
YCMD:admins(playerid, params[], help)
And what's the point of this line:
pawn Код:
if(sscanf(params, "")) {}
It's just useless.
Re: y_command sensitivity -
Ada32 - 22.02.2014
Quote:
Originally Posted by Konstantinos
That command is ZCMD, not y_commands. That would be y_commands: code
|
y_commands is compatible with zcmd syntax so..
Re: y_command sensitivity -
ColeMiner - 22.02.2014
Which version of YSI are you using?
Re: y_command sensitivity -
CroM256 - 22.02.2014
Код:
if(sscanf(params, "")) {}
should be
Код:
#pragma unused params
i know i will fix that
I don't know which version am I using, i think the last one...
Re: y_command sensitivity -
CroM256 - 23.02.2014
Sorry for double post, but i really need help