Posts: 39
Threads: 12
Joined: May 2010
Reputation:
0
this command is supposed to put me in a car. i made it into a filterscript so i could load and use it because a car was stuck where nobody could ever get to it. it worked, but sometimes it doesnt work. randomly, it will decide not to put me in a car.
i commented out the string length check (because im still not sure how to use it) but i still cant get this command to work every time.
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
Should it put you into a car that is near you or it should create a car then put you in it?
Posts: 39
Threads: 12
Joined: May 2010
Reputation:
0
it's not supposed to be a vehicle near me and it has nothing to do with other players. it's supposed to put me in the vehicleid i input no matter where i am in relation to the vehicle.
Posts: 1,110
Threads: 183
Joined: Jul 2009
Reputation:
0
I've experienced problems with PutPlayerInVehicle.. does it not work in sa-mp 0.3c?
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
It always works fine for me. Are you sure you're typing in valid vehicle ids? They start at 1, not 0.
Posts: 39
Threads: 12
Joined: May 2010
Reputation:
0
i am sure i used valid ids, i had 3 cars in a triangle around me and was using /dl. it works when it wants to work. that's why i asked for help.
Posts: 2,082
Threads: 118
Joined: Jan 2010
Reputation:
0
Just try putting yourself in vehicle id 0. (PutPlayerInVehicle(playerid, 0, 0)) - In that command, then you will know if the command is executing correctly.
Posts: 39
Threads: 12
Joined: May 2010
Reputation:
0
09.02.2011, 11:16
(
Последний раз редактировалось Yourfatness; 09.02.2011 в 19:38.
)
yes i am admin. after seeing it work and not leaving the server and then having it not work, i wondered why and posted here. i think it has something to do with my code.
@funky1234: using id 0 didnt work. i then tried 1857 (i was standing right next to it) and it worked, but i couldnt repeat it. this is the problem. it doesnt work every time.