20.03.2012, 21:10
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.
Here's a list of my includes, do any of them conflict..?
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;
}
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