22.03.2012, 23:10
(
Последний раз редактировалось nickdodd25; 23.03.2012 в 01:49.
Причина: update
)
Trying to make carpark zones so players can park in public parking areas but when i make the array for it i come up with 4 codes and i believe i did everything right....
And this is the code line for what tha array is for and the other code i get......
this is the pawn...
I know i am prolly doing it the wrong way. Everything looks correct, just need a little assistance on it to find my problem and mabye a easyer way.
Thanks
Nick
Код:
error 008: must be a constant expression; assumed zero this one 3 times
pawn Код:
new Float:CarParkX [1] =
{
{-2409.8438},//this line
{-2412.1250}
};
new Float:CarParkY [1] =
{
{1544.9453},//this line
{1544.9453}
};
new Float:CarParkZ [1] =
{
{7.0000},//this line
{17.0469}
};
Код:
: error 017: undefined symbol "CarParkX"
pawn Код:
if (IsPlayerInRangeOfPoint(playerid, ParkRange, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ])||(IsPlayerInRangeOfPoint(playerid, ParkRange, CarParkX, CarParkY, CarParkZ)))
Thanks
Nick