03.01.2017, 14:30
Okay, now I understand what this is after being redirected here from your other thread.
#endif: This is a pre-compiler instruction. This is mainly used to determine what you want the compiler to compile at any given time. I use this quite frequently and so do others for example to set a build version to build:
This essentially ends the question your asking the compiler, you haven't posted any code so you can't say that it means his code is broken as it almost certainly isn't. I'd assume he's using this to redefine a pre-defined function example:
Removing end if here would give errors as you've just asked if a question but not told the compiler you done, it's like a return on a function don't have one? possibility for problems.
If the OP posts some code I can give them the precise reasons for the errors and tell them why it's there. If it's placed randomly look up for the other pre-compiler instructions.
#endif: This is a pre-compiler instruction. This is mainly used to determine what you want the compiler to compile at any given time. I use this quite frequently and so do others for example to set a build version to build:
pawn Code:
#if defined BUILD_0.3
//Command or function or whatever is in 0.3a which isn't in another build here
#endif
pawn Code:
#if defined GivePlayerMoney
#undef GivePlayerMoney
#define GivePlayerMoney _Script_GivePlayerMoney
#endif
If the OP posts some code I can give them the precise reasons for the errors and tell them why it's there. If it's placed randomly look up for the other pre-compiler instructions.