Check For Owner
#2

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
pawn Код:
(Vehicle090[playerid],VehicleInfo[playerid][Owner])
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?
Reply


Messages In This Thread
Check For Owner - by HondaCBR - 25.11.2011, 22:18
Re: Check For Owner - by Rob_Maate - 25.11.2011, 22:53
Re: Check For Owner - by HondaCBR - 25.11.2011, 23:06
Re: Check For Owner - by Rob_Maate - 25.11.2011, 23:26
Re: Check For Owner - by HondaCBR - 25.11.2011, 23:57
Re: Check For Owner - by Rob_Maate - 26.11.2011, 00:07
Re: Check For Owner - by HondaCBR - 26.11.2011, 00:29
Re: Check For Owner - by Rob_Maate - 26.11.2011, 01:40
Re: Check For Owner - by HondaCBR - 26.11.2011, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)