enum / variable problem
#6

Okay, what you want is an loop to get the vehicleid


pawn Код:
new vehicleid = -1;
for(new i; i < MAX_VEHICLES; i++)
{
     if(strmatch(Carstringtocheckhere,Carstringtomatchhere)) vehicleid = i; break;
}
now, SetVehicleToRespawn(vehicleid);
Reply


Messages In This Thread
enum / variable problem - by Sascha - 20.10.2010, 00:49
Re: enum / variable problem - by Cameltoe - 20.10.2010, 01:12
Re: enum / variable problem - by Sascha - 20.10.2010, 08:24
Re: enum / variable problem - by Cameltoe - 20.10.2010, 11:59
Re: enum / variable problem - by Sascha - 20.10.2010, 12:36
Re: enum / variable problem - by Cameltoe - 20.10.2010, 12:40
Re: enum / variable problem - by Sascha - 20.10.2010, 12:46

Forum Jump:


Users browsing this thread: 3 Guest(s)