#1

Hi all
Im trying to send a specific message if i use a cmd don't exist on gm.
What code i need to use?
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) {
        SendClientMessage(playerid, /*hex code of color*/, "Unknown command!!!!!1111"); // enter whatever you want here.
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by ConnorHunter
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) {
        SendClientMessage(playerid, /*hex code of color*/, "Unknown command!!!!!1111"); // enter whatever you want here.
    }
    return 1;
}
C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(6533) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#4

Do you use zcmd?
Reply
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/mycommand", true))
    {
        // Nothing here.
        return 1;
    }
    return SendClientMessage(playerid, -1, "{FFCC33}This command doesn't exists.");
}
Reply
#6

yes now it work thx
Reply


Forum Jump:


Users browsing this thread: