04.12.2013, 15:30
Hello all
Why is'case AirPort' not called? It works when I use 'case 20', but not when I use 'case AirPort'. The value of 'AirPort' is 20. My other checkpointids work, but not this one. Anyone knows why?
pawn Код:
enum CheckPointPlaces
{
//other variables
AirPort, //number 20
};
new CheckPoint[CheckPointPlaces];
pawn Код:
CheckPoint[AirPort] = CreateDynamicCP(1318.4940,1262.3025,10.8203, 1.5, 0, -1, -1, 40.0);
Create3DTextLabel("AirPort", COLOUR_LIGHTGREEN, 1318.4940,1262.3025,11.5, 40.0, 0, 0);
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
switch(checkpointid)
{
case AirPort:
{
//code
}
}
return 0;
}