define vehicleid's ??
#1

I want to cut the vehicleid's to: CARS, BOATS and PLANES
...
can you tell me how to make that ...

Or it is like this:
Код:
new cars:
{
  //here the id's of the cars
}
new boats:
{
 //here the id's of the boats 
}
new planes:
{
 //here the id's of the planes 
}
It's because i made a driver license
but at mine it makes no difference between cars and the others...
but I want a difference XD
Reply
#2

new Cars[] = { 411, 522, 523 };
Reply
#3

It's like this:

pawn Код:
new cars[] = {
401,402,403,404
};

new planes[] = {
405,406,407,408
};

new boats[] = {
409,410,411,412
};
Edit: shit, 21 seconds too late :<
Reply
#4

Alright I got it ^^

and how to add one in onplayerstatechange ?

like if the player enter a Car(before defined) do something
or if the player enters a boat do something
or at last if a player enters a plane do something

Код:
if(GetPlayerVehicleID(playerid) == cars[])
{
blablabla
}
Is that code right ?




...Could Anyone Help Me PLease
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)