YSI-Includes icon indicating copy to clipboard operation
YSI-Includes copied to clipboard

Command_AddAltNamed issue

Open CiprianN23 opened this issue 7 years ago • 3 comments

[16:43:41] *** YSI Error: Commands must be in lower-case in your source code.
[16:43:41] *** YSI Error: Commands must be in lower-case in your source code.
[16:43:41] *** YSI Error: Commands must be in lower-case in your source code.
[16:43:41] *** YSI Error: Commands must be in lower-case in your source code.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.
[16:43:42] *** YSI Error: Could not add alt command to array.


        Command_AddAltNamed("carradio", "carmusic");
	Command_AddAltNamed("government", "gov");
	Command_AddAltNamed("megaphone", "m");
	Command_AddAltNamed("radio", "r");
	Command_AddAltNamed("departments", "d");
	Command_AddAltNamed("sms", "t");
	Command_AddAltNamed("pickup", "p");
	Command_AddAltNamed("hangup", "h");
	Command_AddAltNamed("wisper", "w");
	Command_AddAltNamed("ad", "advertise");
	Command_AddAltNamed("s", "shout");
	Command_AddAltNamed("sellmaterials", "sellmats");
	Command_AddAltNamed("clanchat", "c")

YCMD:departments(playerid, params[], help)

I don't have any upper case commands but still its saying they are
I'm using last commit: b13adad4dba9bbffc648129261e7ec647d955c54

CiprianN23 avatar Dec 26 '17 15:12 CiprianN23

(tip: if you use three backticks around your code/logs instead of one, your newlines will be preserved and it will become a lot more readable)

Southclaws avatar Dec 26 '17 15:12 Southclaws

Completly forgot about this issue. Problem was i had more commands than the MAX_COMMANDS constant

Solution: Redefine MAX_COMMANDS to your number of commands+1

CiprianN23 avatar Dec 09 '18 22:12 CiprianN23

Maybe this error message could be improved to hint the solution then.

Southclaws avatar Dec 10 '18 09:12 Southclaws