SA-MP Forums Archive
When i try to Change SERVER: Unknown Command.... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: When i try to Change SERVER: Unknown Command.... (/showthread.php?tid=621420)



When i try to Change SERVER: Unknown Command.... - RedRex - 10.11.2016

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: ...


Re: When i try to Change SERVER: Unknown Command.... - Konstantinos - 10.11.2016

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


Re: When i try to Change SERVER: Unknown Command.... - RedRex - 10.11.2016

Thank you so much Bro Worked