Removing "SERVER: Unknown Command!"
#1

-SOLVED-.
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //commands here
    return SendClientMessage(playerid, color, "Invalid command");
   
}
Reply
#3

Quote:
Originally Posted by Unknownich
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //commands here
    return SendClientMessage(playerid, color, "Invalid command");
   
}
This won't work if he's using a command processor try this
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, -1, "The command you typed is invalid use/cmds");
    return 1;
}
Reply
#4

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
This won't work if he's using a command processor try this
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, -1, "The command you typed is invalid use/cmds");
    return 1;
}
Quote:
Originally Posted by Unknownich
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //commands here
    return SendClientMessage(playerid, color, "Invalid command");
   
}
Thank you both , solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)