Car park zone help
#5

Quote:
Originally Posted by DarkScripter
Посмотреть сообщение
pawn Код:
new Float:CarParkX [1] [2]=
{
    {-2409.8438},//this line
    {-2412.1250}
};

new Float:CarParkY [1][2] =
{
    {1544.9453},//this line
    {1544.9453}
};

new Float:CarParkZ [1][2] =
{
    {7.0000},//this line
    {17.0469}
};
pawn Код:
new /* variable name */ [ /* array*/] [ /* cells */];
whats the point of this? he dont need the array to be that big with that many dimensions.




on to the problem


make sure the CaParkX , Y , Z defines are before that line of code.

place them near the top of you file.

also youll need to add what cell your using

like CarParkX[0] or CarParkX[1]


heres the completed code

pawn Код:
if (IsPlayerInRangeOfPoint(playerid, ParkRange, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ])||(IsPlayerInRangeOfPoint(playerid, ParkRange, CarParkX[0], CarParkY[0], CarParkZ[0])) || (IsPlayerInRangeOfPoint(playerid, ParkRange, CarParkX[1], CarParkY[1], CarParkZ[1])))
i think thats what ya looking for,


regards,
Reply


Messages In This Thread
Car park zone help - by nickdodd25 - 22.03.2012, 23:10
Re: Car park zone help - by Jonny5 - 23.03.2012, 04:16
Re: Car park zone help - by DarkScripter - 23.03.2012, 06:32
Re: Car park zone help - by nickdodd25 - 23.03.2012, 14:30
Re: Car park zone help - by Jonny5 - 23.03.2012, 14:34
Re: Car park zone help - by nickdodd25 - 23.03.2012, 15:57
Re: Car park zone help - by Jonny5 - 23.03.2012, 19:01
Re: Car park zone help - by nickdodd25 - 23.03.2012, 21:26
Re: Car park zone help - by Jonny5 - 23.03.2012, 23:26
Re: Car park zone help - by nickdodd25 - 24.03.2012, 00:33
Re: Car park zone help - by Jonny5 - 24.03.2012, 00:41
Re: Car park zone help - by nickdodd25 - 24.03.2012, 19:06
Re: Car park zone help - by Jonny5 - 28.03.2012, 21:21
Re: Car park zone help - by nickdodd25 - 29.03.2012, 02:40
Re: Car park zone help - by Jonny5 - 29.03.2012, 03:41
Re: Car park zone help - by nickdodd25 - 29.03.2012, 23:43
Re: Car park zone help - by chrism11 - 29.03.2012, 23:49
Re: Car park zone help - by nickdodd25 - 30.03.2012, 00:18
Re: Car park zone help - by chrism11 - 30.03.2012, 01:16
Re: Car park zone help - by nickdodd25 - 30.03.2012, 02:02
Re: Car park zone help - by chrism11 - 30.03.2012, 22:34
Re: Car park zone help - by nickdodd25 - 02.04.2012, 00:56

Forum Jump:


Users browsing this thread: 1 Guest(s)