29.08.2016, 21:06
Код:
if(vehicleid == meatcar_1 ... meatcar_2 .... meatcar_3
Код:
if(vehicleid == meatcar_1) { bla bla } if(vehicleid == meatcar_2) ....
if(vehicleid == meatcar_1 ... meatcar_2 .... meatcar_3
if(vehicleid == meatcar_1) { bla bla } if(vehicleid == meatcar_2) ....
if(vehicleid == meatcar_1||vehicleid == meatcar_2)
// global
new gMeatcar[5];
// GameModeInit
gMeatcar[0] = CreateVehicle(...);
// etc
// Wherever
for(new i; i < sizeof(gMeatcar); i++)
{
if(vehicleid == gMeatcar[i])
{
// do stuff
break;
}
}