"Unknown Command" doesn't show up IG no more?
#1

fixed
Reply
#2

Show the command
Reply
#3

What command? It was an example, like if I typed /etjwerwefjfjwefjweif (A cmd which isn't on my server) it should show "This Command Doesn't Exist Here" but it shows nothing.
Reply
#4

Do you use ZCMD, DCMD, YCMD or none at all?
Reply
#5

If you're using ZCMD

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_NEWS, "Error: That command does not exist. Refer to /help for server commands.");
    return 1;
}
Reply
#6

fixed
Reply
#7

any1?
Reply
#8

That's happening because your not using ZCMD, what command processor are you using.
Reply
#9

im not using zcmd or anything in this script.
Reply
#10

Download ZCMD here: https://sampforum.blast.hk/showthread.php?tid=91354 At the top of your script in your includes put "#include <zcmd>" and then use the code I gave you. If you need to convert your other commands from strcmp to zcmd you can use this quick and easy fliterscript https://sampforum.blast.hk/showthread.php?tid=271043
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)