SA-MP Forums Archive
public which allows custom command error messages - 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: public which allows custom command error messages (/showthread.php?tid=310828)



public which allows custom command error messages - Rokzlive - 14.01.2012

Whats the public function which has a success variable which allows you to make a custom error for invalid commands?


Re: public which allows custom command error messages - iGetty - 14.01.2012

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success){
    if (!success) return SendClientMessage(playerid, YOURCOLOUR, "Your Message");
    return 1;
}