argument type mismatch (argument 2)
#1

lines:
Код:
SetVehiclePos(carnas[playerid], nascarcords[0],nascarcords[1],nascarcords[2]);
SetVehicleZAngle(carnas[playerid], nascarcords[4]);
Cordinates:
Код:
new Float:nascarcords[6][4] =
{
	{-1525.8417, -223.6966, 1050.7609, 190.0682}, {-1533.7819, -225.3447, 1050.6063, 191.7714}, {-1526.9490, -216.2671, 1050.6063, 185.4247},
	{-1534.9983, -217.3239, 1050.6063, 188.3501}, {-1535.1224, -209.6451, 1050.2690, 182.5461}, {-1527.2579, -209.4662, 1050.2690, 182.0988}
};
Reply
#2

I don't think you could use a variable instead of vehicleid

pawn Код:
SetVehiclePos(vehicleid, nascarcords[0],nascarcords[1],nascarcords[2]);
SetVehicleZAngle(vehicleid, nascarcords[4]);
https://sampwiki.blast.hk/wiki/SetVehiclePos
https://sampwiki.blast.hk/wiki/SetVehicleZAngle
Reply
#3

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
I don't think you could use a variable instead of vehicleid

pawn Код:
SetVehiclePos(vehicleid, nascarcords[0],nascarcords[1],nascarcords[2]);
SetVehicleZAngle(vehicleid, nascarcords[4]);
It's not from the vehicle variable. When i make the cordinates random it works, but i don't want random.

Sorry for my bad english.
Reply
#4

Well which coordinates are you trying to set it to:
{-1525.8417, -223.6966, 1050.7609, 190.0682}, {-1533.7819, -225.3447, 1050.6063, 191.7714}, {-1526.9490, -216.2671, 1050.6063, 185.4247},
{-1534.9983, -217.3239, 1050.6063, 188.3501}, {-1535.1224, -209.6451, 1050.2690, 182.5461} or {-1527.2579, -209.4662, 1050.2690, 182.0988} ?

You're treating 'nascarcords' as a 2D array when it's a 3D array in reality.
Reply
#5

I want first {-1525.8417, -223.6966, 1050.7609, 190.0682} then to spawn the player to the next cordinate which is {-1533.7819, -225.3447, 1050.6063, 191.7714} and etc.

The 190.0682 is the FacingAngle of the vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)