rCmd - Unknown command
#7

Hmm, I pasted your code into a completely blank pwn document and the command worked.
I've just slowly searched through my whole gamemode commenting out parts until the no parameter commands (/kill and /time for example) worked (Got the gm down to literilly just what you posted above) and made my way through uncommenting everything checking if they still worked each time. And all I have left is the commands commented except /kill and /time. They work, but if I go in game and write an unrecongnised command, they would no longer work either. If I uncomment anymore commands such as /Say for example that command wont work, yet still letting me use those 2 non parameter commands. Just for reference, here's my /say command.
pawn Код:
rCmd[s]->say(playerid,success,text[])
{
    new resStr[128];
    if(!success) return SendClientMessage(playerid,COLOUR_WHITE,"* Usage: /Say [Text]");
    format(resStr,128,"%s says %s",PlayerName(playerid),text);
    ProxDetector(5.0, playerid, resStr,COLOR_GRAD1,COLOR_GRAD2,COLOR_GRAD3,COLOR_GRAD4,COLOR_GRAD5);
    return 1;
}
Any advice?

Edit: To the post above, yes.
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)