SA-MP Forums Archive
SendClientMessage is SyntaxMessage? - 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: SendClientMessage is SyntaxMessage? (/showthread.php?tid=452480)



SendClientMessage is SyntaxMessage? - Kapone21 - 21.07.2013

What is "SyntaxMessage"?? i found this on a gamemode:
if(!strlen(tmp)) return SyntaxMessage(playerid, "/makemoneybag [amount]");


but this "syntax" don't have #define is from a plugin?


Re: SendClientMessage is SyntaxMessage? - Scenario - 21.07.2013

It is probably a public/stock function defined in your script somewhere. It doesn't necessarily have to be defined via #define.


Re: SendClientMessage is SyntaxMessage? - [XST]O_x - 21.07.2013

It's probably a function that the creator of th GM made. If you can't find the definition in the GM, it's probably in one of the includes.
I guess that this is a function that adds a couple of words to the message and saves time to the writer.
(SyntaxMessage(playerid, text); = SendClientMessage(playerid, color, "SYNTAX:" + text); )