rCmd - Unknown command
#1

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:
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;
}
Any ideas?
Reply


Messages In This Thread
rCmd - Unknown command - by miokie - 21.05.2012, 14:49
Re: rCmd - Unknown command - by Xaviour212 - 21.05.2012, 14:56
Re: rCmd - Unknown command - by miokie - 21.05.2012, 15:07
Re: rCmd - Unknown command - by miokie - 21.05.2012, 18:21
Re: rCmd - Unknown command - by RyDeR` - 21.05.2012, 18:25
Re: rCmd - Unknown command - by ViniBorn - 21.05.2012, 18:27
Re: rCmd - Unknown command - by miokie - 21.05.2012, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)