Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
The problem is that if I use it on a /v command to spawn a vehicle, when I'm on foot, it puts me in the vehicle was created and then it tries to put me 2nd time and it fails. As I mentioned above, I do not want to do this. Just "PutPlayerInVehicle" only one time and do what includes file say. But it keeps giving me the warning.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
I would appreciate if someone could help me with that warning. The only way, atleast for me is not to use the one of the includes, but I want to use both of them! Is there any way to use these two includes together without any warning?
Posts: 44
Threads: 6
Joined: Oct 2012
Reputation:
0
You cannot use them both as they both has the same definition, however you can change one PutPlayerVehicle to PutPlayerInVehicle etc or something else to avoid the re-definition, else I don't see how you can use them both.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
What do you mean, ******? Can you be more specific, please!
I'm using the one include "fixes.inc" which defines "PutPlayerInVehicle" and I'm also using an include about airbreak detection which defines this function. I've never use ALS before and I don't know how I can fix it. Can you explain me or with some examples, atleast to understand it!
@HarryPotter, read the above commands please. As I've said, it is bugged with this function, if I put a player in a vehicle twice.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Thanks LarzI, I've read this + two tutorials about hook but what I've noticed is that they shows how to hook a callback. I don't know how to do it for a function. Or is it the same way?