Working Globbly - 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: Working Globbly (
/showthread.php?tid=528216)
Working Globbly -
AroseKhanNiazi - 26.07.2014
pawn Код:
if(Eid == 1)//1424
{
#define VERSION "EID UPDATE"
}//1427
else//1428
{
#define VERSION "4.2.0"
}//1431
this is not working error
Код:
(1424) : error 010: invalid function or declaration
(1427) : error 054: unmatched closing brace ("}")
(1428) : error 010: invalid function or declaration
(1430) : warning 201: redefinition of constant/macro (symbol "VERSION")
(1431) : error 054: unmatched closing brace ("}")
AW: Working Globbly -
Nero_3D - 27.07.2014
If you use macros you need to use #if
pawn Код:
#if Eid == 1
#define VERSION "EID UPDATE"
#else
#define VERSION "4.2.0"
#endif
But that only works with constant values