21.05.2012, 14:49
I'm having some problems with rCmd, No commands are executing what-so-ever and im getting the '* Unknown Command' message. I'm using this on a near to blank gamemode with no filterscripts. I have no errors either and I downloaded the includes 3 days ago so I know they are up to date.
Heres the relative code with a basic command that doesn't work:
Any ideas?
Heres the relative code with a basic command that doesn't work:
pawn Код:
#include <a_samp>
#include <dini>
#include <DynamicParams>
#include <rCmd>
forward OnPlayerCommandReceived(playerid, cmdtext[]);
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
rCmd[]->kill(playerid)
{
SetPlayerHealth(playerid,0.0);
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
return SendClientMessage(playerid, 0xFF0000FF, "* Unknown Command");
}
return 1;
}