Working Globbly
#1

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 ("}")
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)