Unknown command;/
#1

Some of my commands return Unknown Command and they're scripted properly.

I've re-written them 5 times, taken caution each time and for some reason it keeps saying Unknown Command.

Ex:
pawn Код:
CMD:jobquit(playerid, params[])
{
    if(PlayerInfo[playerid][pJob] == 0)
    {
        SendClientMessage(playerid, COLOR_RED, "|- Error: You don't have a job to quit! -|");
    }
    else
    {
        PlayerInfo[playerid][pJob] = 0;
        SendClientMessage(playerid, COLOR_GREEN, "|- Success: You are now unemployed! -|");
    }
    return 1;
}
Reply
#2

Do all of your commands from that particular script return "Unknown command"?

Have you removed OnPlayerCommandText?
Reply
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Do all of your commands from that particular script return "Unknown command"?

Have you removed OnPlayerCommandText?
Most, not all.
And yeah I've removed that.
Reply
#4

It's kinda hard to help you because all you have posted is 1 command that is written fine, the problem isn't that command.

EDIT: If it's not a very large script, I can have a look if you send it me.
Reply
#5

Any idea what the problem is? Or even, can you help me over Skype?
Reply
#6

Anyone?
Reply
#7

Do you have something here like returning 0?

PHP код:
OnPlayerCommandPerformed(playeridcmdtext[], success
Reply
#8

I don't have that in the script.
Reply
#9

Anyone please?

pawn Код:
CMD:teleport(playerid, params[])
{
    SetPlayerPos(..);
    return 1;
}
Even that command returns Unknown command.
Reply
#10

That usually happens when you mix dcmd / strcmp and zcmd.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)