• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] GetPlayerPos and show in chat?
#4
(2020-12-19, 06:23 PM)Markski Wrote: There is also an extended version of SendClientMessage which does receive parameters.



Code:
stock SendClientMessageEx(playerid, color, const str[], {Float,_}:...) { static args, start, end,string[200]; #emit LOAD.S.pri 8 #emit STOR.pri args if (args > 12) { #emit ADDR.pri str #emit STOR.pri start for (end = start (args - 12); end > start; end -= 4) { #emit LREF.pri end #emit PUSH.pri } #emit PUSH.S str #emit PUSH.C 156 #emit PUSH.C string #emit PUSH.C args #emit SYSREQ.C format SendClientMessage(playerid, color, string); #emit LCTRL 5 #emit SCTRL 4 #emit RETN } return SendClientMessage(playerid, color, str); }

That's a terrible one at that, they should use va_SendClientMessage
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
GetPlayerPos and show in chat? - by LagunaPreza - 2020-12-19, 05:48 PM
RE: GetPlayerPos and show in chat? - by Pinch - 2020-12-19, 06:16 PM
RE: GetPlayerPos and show in chat? - by Markski - 2020-12-19, 06:23 PM
RE: GetPlayerPos and show in chat? - by Pinch - 2020-12-19, 06:59 PM
RE: GetPlayerPos and show in chat? - by Markski - 2020-12-19, 07:27 PM