Change SERVER: UNKNOWN COMMAND
#1

Yo, so i tried to change that message by putting this at the end of OnPlayerCommandText
Code:
    return SendClientMessage(playerid,COLOR_RED,"Det hдr kommandot finns inte, /help.");
}
But it didn't work, i use ZCMD, how can i change the message?
Reply
#2

PHP Code:
forward OnPlayerCommandPerformed(playeridcmdtext[], success);

public 
OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
successSendClientMessage(playeridCOLOR_RED"Det hдr kommandot finns inte, /help.");
    return 
1;

Reply
#3

pawn Code:
SendClientMessage(playerid,COLOR_RED,"Det hдr kommandot finns inte, /help.");
return 1;
Reply
#4

Quote:
Originally Posted by WoodPecker
View Post
PHP Code:
forward OnPlayerCommandPerformed(playeridcmdtext[], success);
public 
OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
successSendClientMessage(playeridCOLOR_RED"Det hдr kommandot finns inte, /help.");
    return 
1;

Thanks works, i'm a idiot.

+Rep for you.

Quote:
Originally Posted by varthshenon
View Post
pawn Code:
SendClientMessage(playerid,COLOR_RED,"Det hдr kommandot finns inte, /help.");
return 1;
That would never work becuse i use ZCMD.
Reply
#5

Im glad that i helped you, if you got more questions feel free to ask.
Reply
#6

I don't even know what is the purpose of that code. So I just put a simple code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)