When i try to Change SERVER: Unknown Command....
#1

Hello When i try to Change SERVER : UNKOWN COMMAND

I got it i change it But there something ERROR....


I Typed This Code

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
    if (!success) {
        SendClientMessage(playerid, -1, "SorrY This Command is not vaild");
    }
}
i typed this Code but when i joined the Server And Try to type invaild Command i got This

http://imgur.com/a/EhzQY

so How to i can Let it only My Message not SERVER: ...
Reply
#2

Return 1 at the end of the callback. Not returning a value is like returning 0 which will show the unknown command message.
Reply
#3

Thank you so much Bro Worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)