[Y_command] error 017: undefined symbol "YSI_g_sCommands"
#1

Get this error even though I have the latest YSI library. Which may be?

Код:
YCMD:test(playerid, params[], help)
{
	if(_Command_IsEmptySlot(0))
	{

	}

	return 1;
}
Quote:
Originally Posted by errors
error 017: undefined symbol "YSI_g_sCommands"
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Reply
#2

https://sampforum.blast.hk/showthread.php?pid=1448082#pid1448082

Pretty sure your includes either corrupt, or incomplete. Re-download it to make sure.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
Functions that start with "_" are internal ones and shouldn't be called. What are you trying to do, as that code doesn't really make much sense - you are checking to see if slot 0 is unused, but the slots are internal and just where the commands are stored in an array. Plus the fact that you are calling that function from inside a command means that at least one command exists, and thus slot 0 will always be in use.
lol I just saw it on the WIKI and tried it. Excuse me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)