y_commands not working
#1

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?
Reply
#2

Make sure you putted the command outside any callbacks..

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

the commands are out side of any callbacks..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)