YSI-Includes
YSI-Includes copied to clipboard
Command_AddAltNamed issue
[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
(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)
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
Maybe this error message could be improved to hint the solution then.