08.04.2009, 11:17
hi guys, I made this array which rapresents the vehicle models.
and when i'm using it in code to see if a vehicle is one from those models i get no errors but it aint working like i want. Can someone help me? i'm using it like this!
this code soppose to do that if a vehicle is one of the model id's i done in the array it should skip the stuff that i do for other cars.
Код:
new vmodel[0] = {
"409",
"416",
"437",
"500",
"523",
"525",
"597",
"598",
"599"
};
Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == vmodel[0])
{
return 0;
}

