12.03.2010, 16:17
Hi!
Well I have these defines:
And when I use it here:
It fails. Actually I click the "Compile" icon then the compiler starts but ir will NEVER stop. I have to stop the pawncc.exe processus. Any idea why?
Well I have these defines:
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 Код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsReservedSkin(classid)) GameTextForPlayer(playerid, "~r~Skin reserve", 1000, 6);
return 1;
}