SA-MP Forums Archive
Send message to the compiler's output - 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: Send message to the compiler's output (/showthread.php?tid=623359)



Send message to the compiler's output - Yousha - 30.11.2016

Hi

Is there a way to send Normal message to the compiler's output?
Like preprocessor/directive #error, but dont want abort the compilation...

Thanks


Re: Send message to the compiler's output - Jessyy - 01.12.2016

There is a way, but you must use pawn compiler provided by zeex: https://github.com/Zeex/pawn/releases
Код:
#warning
Print a user warning.

This works similar to the #error directive. For example, compiling a file that contains

#warning Don't include this file
would result in

warning 237: user warning: Don't include this file
Read more here https://github.com/Zeex/pawn/wiki/What's-new


Re: Send message to the compiler's output - Yousha - 01.12.2016

Thanks, what are advantages of using ZeeX pawn compiler? and is that fully compatible with SA-MP binaries and its plugins?