25.11.2011, 22:53
Well that's easy.
IsPlayerInVehicle() requires you to give it two parameters.
1. playerid: The player you are actually checking against
2. vehicleid: The vehicle you are checking if the player is in
In YOUR code, you have not provided a vehicle ID, you have produced whatever
equals in pawno land.
You have made a terrible mistake in your code: VehicleInfo[playerid][owner] will not work.
You need to use VehicleInfo[<your vehicle id variable here>][Owner]
Also what is the point of Vehicle090[playerid]? What does it store?
IsPlayerInVehicle() requires you to give it two parameters.
1. playerid: The player you are actually checking against
2. vehicleid: The vehicle you are checking if the player is in
In YOUR code, you have not provided a vehicle ID, you have produced whatever
pawn Код:
(Vehicle090[playerid],VehicleInfo[playerid][Owner])
You have made a terrible mistake in your code: VehicleInfo[playerid][owner] will not work.
You need to use VehicleInfo[<your vehicle id variable here>][Owner]
Also what is the point of Vehicle090[playerid]? What does it store?