SA-MP Forums Archive
[Y_command] error 017: undefined symbol "YSI_g_sCommands" - 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] error 017: undefined symbol "YSI_g_sCommands" (/showthread.php?tid=625103)



[Y_command] error 017: undefined symbol "YSI_g_sCommands" - GranaT3 - 28.12.2016

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



Re: [Y_command] error 017: undefined symbol "YSI_g_sCommands" - Sew_Sumi - 28.12.2016

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

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


Respuesta: Re: [Y_command] error 017: undefined symbol "YSI_g_sCommands" - GranaT3 - 28.12.2016

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.