12.03.2010, 16:27
Lets have a direct look at your defines:
So now I saw you using this small line:
Which for the compiler will look like:
So, what I think the problem is, is likely the fact that if you spread it out and actually do it in a small syntax way of looking:
So, what I would suggest you(because I assume its just a brakets fault, you can easily just change your defines and make them look like this:
Now I assume it should work just fine as long as you remain using it in if's.
EDIT: Hold on. I think I found a small problem just by reading my own post again. Try this once:
Just remove the last braket and try to compile it. See what happens.
pawn Код:
#define IsGangSkin(%0) ((%0 >= 102 && %0 <= 110) || (%0 >= 114 && %0 <= 116) || (%0 >= 173 && %0 <= 175) || (%0 >= 269 && %0 <= 270))
#define IsMafiaSkin(%0) (%0 == 112 || %0 == 124 || %0 == 126 || %0 == 127)
#define IsPublicServicesSkin(%0) ((%0 >= 274 && %0 <= 288) || (%0 >= 265 && %0 <= 267))
#define IsReservedSkin(%0) (IsGangSkin(%0) || IsGangSkin(%0) || IsMafiaSkin(%0) || IsPublicServicesSkin(%0))
pawn Код:
if(IsReservedSkin(classid))
pawn Код:
if(((%0 >= 102 && %0 <= 110) || (%0 >= 114 && %0 <= 116) || (%0 >= 173 && %0 <= 175) || (%0 >= 269 && %0 <= 270)) || ((%0 >= 102 && %0 <= 110) || (%0 >= 114 && %0 <= 116) || (%0 >= 173 && %0 <= 175) || (%0 >= 269 && %0 <= 270)) || (%0 == 112 || %0 == 124 || %0 == 126 || %0 == 127) || ((%0 >= 274 && %0 <= 288) || (%0 >= 265 && %0 <= 267)))
pawn Код:
if(
(
(%0 >= 102 && %0 <= 110)
||
(%0 >= 114 && %0 <= 116)
||
(%0 >= 173 && %0 <= 175)
||
(%0 >= 269 && %0 <= 270)
)
||
(
(%0 >= 102 && %0 <= 110)
||
(%0 >= 114 && %0 <= 116)
||
(%0 >= 173 && %0 <= 175)
||
(%0 >= 269 && %0 <= 270)
)
||
(%0 == 112 || %0 == 124 || %0 == 126 || %0 == 127)
||
(
(%0 >= 274 && %0 <= 288)
||
(%0 >= 265 && %0 <= 267)
)
)
pawn Код:
#define IsGangSkin(%0) %0 >= 102 && %0 <= 110 || %0 >= 114 && %0 <= 116 || %0 >= 173 && %0 <= 175 || %0 >= 269 && %0 <= 270
#define IsMafiaSkin(%0) %0 == 112 || %0 == 124 || %0 == 126 || %0 == 127
#define IsPublicServicesSkin(%0) %0 >= 274 && %0 <= 288 || %0 >= 265 && %0 <= 267
#define IsReservedSkin(%0) IsGangSkin(%0) || IsGangSkin(%0) || IsMafiaSkin(%0) || IsPublicServicesSkin(%0)
EDIT: Hold on. I think I found a small problem just by reading my own post again. Try this once:
pawn Код:
if(ReservedSkin(classid)