[HELP]Teleport pickup that player AND car
#11

Код:
#include <a_samp>

#define FILTERSCRIPT

new garageoutsidecars, garagecars, garageoutside, garage, telehouse, teleinhouse;

public OnFilterScriptInit()
{
	garageoutsidecars = CreatePickup (1273, 14, 2196.8542,2412.0093,10.8203);
	garagecars = CreatePickup (1272, 14, 2172.7998,2416.6609,10.8203, 0);
	garageoutside = CreatePickup (1273, 1, 2196.8542,2412.0093,10.8203);
	garage = CreatePickup (1272, 1, 2172.7998,2416.6609,10.8203, 0);
	telehouse = CreatePickup (1273, 1, 2127.4480,2378.8501,10.8203, 0);
	teleinhouse = CreatePickup (1272, 1, 2126.8457,2384.8062,10.8378, 0);
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == garageoutsidecars)
{
	SetPlayerPos (playerid, 2165.5825,2416.3362,10.8203);
	if(IsPlayerInAnyVehicle(playerid))
	{
		new pveh = GetPlayerVehicleID(playerid);
		SetVehiclePos(pveh, 2165.5825,2416.3362,10.8203);
		PutPlayerInVehicle(pveh, 0);//warning 202: number of arguments does not match definition
	}
}
if(pickupid == garagecars)
{
	SetPlayerPos (playerid, 2219.7261,2414.9763,10.8125);
	if(IsPlayerInAnyVehicle(playerid))
	{
		new pveh = GetPlayerVehicleID(playerid);
		SetVehiclePos(pveh, 2219.7261,2414.9763,10.8125);
		PutPlayerInVehicle(pveh, 0);//warning 202: number of arguments does not match definition
	}
}
if(pickupid == garage)
{
	SetPlayerPos (playerid, 2219.7261,2414.9763,10.8125);
}
if(pickupid == garageoutside)
{
   SetPlayerPos (playerid, 2165.5825,2416.3362,10.8203);
}
if(pickupid == telehouse)
{
	SetPlayerPos (playerid, 2126.5146,2388.8406,10.8378);
}
if(pickupid == teleinhouse)
{
	SetPlayerPos (playerid, 2127.5010,2375.6118,10.8203);
}
return 1;
}
2 Warnings.

What did i do wrong now?

When i try to drive out with the car, the car gets where its supposed to be, but my player ends up on the same place as the car, without being putted in the car, he just stands in the middle of it.
Reply


Messages In This Thread
[HELP]Teleport pickup that player AND car - by RedFusion - 06.07.2010, 23:14
Re: [HELP]Teleport pickup that player AND car - by Mystique - 07.07.2010, 09:41
Re: [HELP]Teleport pickup that player AND car - by Tr1viUm - 07.07.2010, 09:53
Re: [HELP]Teleport pickup that player AND car - by Hiddos - 07.07.2010, 09:57
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 10:39
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 11:11
Re: [HELP]Teleport pickup that player AND car - by dice7 - 07.07.2010, 11:16
Re: [HELP]Teleport pickup that player AND car - by CAR - 07.07.2010, 11:18
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 11:20
Re: [HELP]Teleport pickup that player AND car - by dice7 - 07.07.2010, 11:23
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 11:55
Re: [HELP]Teleport pickup that player AND car - by CAR - 07.07.2010, 12:18
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 12:33
Re: [HELP]Teleport pickup that player AND car - by Hiddos - 07.07.2010, 12:45
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 14:23
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 18:10
Re: [HELP]Teleport pickup that player AND car - by CAR - 07.07.2010, 18:13
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 07.07.2010, 21:57
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 08.07.2010, 13:10
Re: [HELP]Teleport pickup that player AND car - by CAR - 08.07.2010, 14:45
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 08.07.2010, 15:39
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 13.07.2010, 12:25
Re: [HELP]Teleport pickup that player AND car - by RedFusion - 13.07.2010, 21:56

Forum Jump:


Users browsing this thread: 2 Guest(s)