SA-MP Forums Archive
(+rep) How to use #ERROR ? - 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: (+rep) How to use #ERROR ? (/showthread.php?tid=649172)



(+rep) How to use #ERROR ? - maksicnm - 04.02.2018

So i defined prefix in my AntiCheat, but i cannot get how to "Ban" peoples from changing it, i mean how to use #error ?
Example if they change:
#define PREFIX "{FF0000}N-AC{FFFFFF}"
into
#define PREFIX "{FF0000}SOMETHING{FFFFFF}"
to show them #error ?


Re: (+rep) How to use #ERROR ? - PepsiCola23 - 04.02.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
Especially when you have hard-coded colours in that string, which is bad practice.
hello.how should we use colours in strings?whats the good practice method?