Error - Invalid Expression? - 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: Error - Invalid Expression? (
/showthread.php?tid=295722)
Error - Invalid Expression? -
TheArcher - 07.11.2011
I have this code
pawn Код:
#if defined MyPassword
#define MyPassword "asd"
#elseif
#define MyPassword 0
#endif
It works fine without #elseif i did something wrong?
Re: Error - Invalid Expression? -
Kingunit - 07.11.2011
What's wrong? Do you have errors?
Re: Error - Invalid Expression? -
SmiT - 07.11.2011
It should be "else" instead of "elseif" -
pawn Код:
#if defined MyPassword
#define MyPassword "asd"
#else
#define MyPassword 0
#endif
Re: Error - Invalid Expression? -
TheArcher - 07.11.2011
@SmiT thanks that was the error i just was a little confused with "#" functions