SA-MP Forums Archive
SCM vs SendClientMessage - 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: SCM vs SendClientMessage (/showthread.php?tid=650356)



SCM vs SendClientMessage - PepsiCola23 - 26.02.2018

Is there any speed difference betweeen using SendClientMessage and defining it with SCM or is it totally the same ?


Re: SCM vs SendClientMessage - Dayrion - 26.02.2018

Depends how you define SCM. Using #define makes it complety the same thing because #... is a text replacement directive. https://sampwiki.blast.hk/wiki/Keywords:...ives#.23define
Creating a function SCM which returns SendClientMessage is slower.


Re: SCM vs SendClientMessage - PepsiCola23 - 26.02.2018

ok thank you very much,i was just thinking SendClientMessage could be faster due to the fact that when the script reads SCM it takes 1 more step to see it defined as SendClientMessage. Just a thought i had,good luck !