Help: SERVER: Unknown command
#1

I added some new things on my gamemode,
like Speedometer, Reaction, Countdown, Savepos and Loadpos.
I compiled it and it compiled fine. But when I connect on server to test it, all my commands are Unknown commands
Why this happened?
Here is a picture:
Reply
#2

Have you returned 0 at the end of your commands ?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/blah", cmdtext, true, 10) == 0)
    {
        //blah
        return 1;
    }
    if (strcmp("/blah2", cmdtext, true, 10) == 0)
    {
        //blah
        return 1;
    }
    return 0;//return 0 here...
}
Reply
#3

No, but before added these things, on my gamemode I didn't
pawn Код:
return 0;
}
and it worked fine.
Reply
#4

Show me OnPlayerCommandText, www.pastebin.com
If you're afraid to post it here on the forums, PM me it.
Reply
#5

I send you pm, please help me
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)