05.10.2013, 23:11
pawn Код:
if(eCheckpoints[0] <= checkpointid <= eCheckpoints[sizeof(eCheckpoints)-1])
{
new CP = checkpointid - eCheckpoints[0];
switch(CP)
{
case 0:
case 1:
...
}
}
pawn Код:
for(new o = 0; o < sizeof(eCheckpoints); o++)
{
if(checkpointid == eCheckpoints[o])
{
switch(o)
{
case 0:
...
}
break;
}
}