Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
|
Originally Posted by ColdXX
Quote:
|
Originally Posted by FreddoX [BINMAN
]
Quote:
|
Originally Posted by ColdXX
Quote:
|
Originally Posted by † мąүқоҳ™
|
I tried this but it didnt work...maybe i didnt do it well :S
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { AddVehicleComponent(car8,1010); return 1; }
Like this?
|
Creating an alternate variable would not be necessary if you're applying modifications to the vehicle they enter, but you're on the right tracks.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { AddVehicleComponent(vehicleid, 1010); return 1; }
|
Yea but if i have more cars...to which i wanna add parts...i have to use only that? but that wont add nos to every car i enter?:S
|
Then you'll have to use alternate variables, my post was merely stating that when you enter 1 vehicle you'll only want to affect that 1 - so create 1 variable, if not then you will need alternate variables.