y_command sensitivity
#1

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;
}
Reply
#2

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.
Reply
#3

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..
Reply
#4

Which version of YSI are you using?
Reply
#5

Код:
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...
Reply
#6

Sorry for double post, but i really need help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)