SA-MP Forums Archive
y_commands not working - 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_commands not working (/showthread.php?tid=440153)



y_commands not working - Swimor - 28.05.2013

y_commands not working

I downloaded YSI 3.1 and included y_command like this:
Код:
#include <YSI\y_commands>
Simple use:
Код:
YCMD:kill(playerid, params[], help) {
	SetPlayerHealth(playerid, 0);
	SendClientMessage(playerid, COLOR_ORANGE, "[Mode] дъабгеъ"); //
	return 1;
}
But when I typing /kill nothing happens.
But when is filterscript OnPlayerCommandText returns 0 this sending Unknown Command message...

What to do?


Re: y_commands not working - SilverKiller - 28.05.2013

Make sure you putted the command outside any callbacks..

(I'm not sure about this, correct me if i'm wrong guys.)


Re: y_commands not working - Swimor - 28.05.2013

the commands are out side of any callbacks..