Invalid command
#4

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
for zcmd

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Unknown Command.");
    return 1;
}
pawn Код:
 

it should be like this-
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new str[256];
        format(str, sizeof(str), "Command '%s' "orange"doesn't exist", cmdtext);
        SendClientMessage(playerid, -1,  str);
    }
    return 1;
}
---
You can use only 1 command processor if you are using strcmp and want to convert to zcmd see this-
https://sampforum.blast.hk/showthread.php?tid=459934

+rep if helped
Reply


Messages In This Thread
Invalid command - by iBots - 21.07.2014, 03:25
Re: Invalid command - by IceBilizard - 21.07.2014, 03:29
Re: Invalid command - by iBots - 21.07.2014, 03:42
Re: Invalid command - by KayJ - 21.07.2014, 03:49
Re: Invalid command - by IceBilizard - 21.07.2014, 03:54
Re: Invalid command - by iBots - 21.07.2014, 03:54
Re: Invalid command - by Scottas - 21.07.2014, 03:56
Re: Invalid command - by iBots - 21.07.2014, 04:03
Re: Invalid command - by Raza2013 - 21.07.2014, 04:08

Forum Jump:


Users browsing this thread: 2 Guest(s)