Array Help!
#1

hi guys, I made this array which rapresents the vehicle models.

Код:
new vmodel[0] = {
	"409",
	"416",
	"437",
	"500",
	"523",
	"525",
	"597",
	"598",
	"599"
};
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!

Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == vmodel[0])
  {
	return 0;
  }
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.
Reply


Messages In This Thread
Array Help! - by silvan - 08.04.2009, 11:17
Re: Array Help! - by Nubotron - 08.04.2009, 11:33
Re: Array Help! - by silvan - 08.04.2009, 11:42
Re: Array Help! - by silvan - 08.04.2009, 14:38
Re: Array Help! - by HB - 08.04.2009, 14:48
Re: Array Help! - by Nubotron - 08.04.2009, 17:54
Re: Array Help! - by silvan - 09.04.2009, 19:50
Re: Array Help! - by silvan - 17.04.2009, 16:36

Forum Jump:


Users browsing this thread: 3 Guest(s)