View Single Post
Old 15/02/2012, 01:25 PM   #4
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,250
Reputation: 746
Default Re: #error doesn't appear on compile

No need to do that, just use:
pawn Code:
#if defined _Script_Init
      #endinput
#endif

Now, if you do:
pawn Code:
#include "Scripts/init.pwn"
#include "Scripts/init.pwn"
#include "Scripts/init.pwn"
#include "Scripts/init.pwn"
#include "Scripts/init.pwn"

Nothing will go wrong.
__________________
Goodbye SA-MP.
iPLEOMAX is offline   Reply With Quote