SERVER: Unknown command - y_commands - 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: SERVER: Unknown command - y_commands (
/showthread.php?tid=327365)
SERVER: Unknown command - y_commands -
2KY - 20.03.2012
I've got two commands (/commands is provided in the y_commands documentation topic, therefore it should work!), and both of them "work" and then send "SERVER: Unknown command" afterwards.
pawn Код:
CMD:help(playerid, params[])
{
return 1;
}
YCMD:commands(playerid, params[], help)
{
if (help)
{
SendClientMessage(playerid, 0xFF0000AA, "Lists all the commands a player can use.");
}
else
{
new
count = Command_GetPlayerCommandCount(playerid);
for (new i = 0; i != count; ++i)
{
SendClientMessage(playerid, 0xFF0000AA, Command_GetNext(i, playerid));
}
}
return 1;
}
Here's a list of my includes, do any of them conflict..?
pawn Код:
#include <a_samp> //SA:MP Library
#include <foreach> //Loop Processing
#include <sscanf2> //Parameter Processing
#include <streamer> //Ton of different streamers in one.
#include <YSI\y_commands> //Command Processing
#include <YSI\y_master>
#include <YSI\y_ini> //File Writing/Deleting