[Help] explanation Float Pos
#2

I don't know how you counted that second 14... I only count 14 rows of 4 coordinates each, so it should be:

pawn Код:
new Float:Pos[14][4] =
If you want to read the data from this array, you can do it like this:

pawn Код:
SetPlayerPos(playerid, Pos[0][0], Pos[0][1], Pos[0][2]);   //first line  = 0
SetPlayerFacingAngle(playerid, Pos[0][3]);                     //first line  = 0

SetPlayerPos(playerid, Pos[1][0], Pos[1][1], Pos[1][2]);   //second line  = 1
SetPlayerFacingAngle(playerid, Pos[1][3]);                     //second line  = 1

SetPlayerPos(playerid, Pos[2][0], Pos[2][1], Pos[2][2]);   //third line  = 2
SetPlayerFacingAngle(playerid, Pos[2][3]);                     //third line  = 2
 
(...)
 
SetPlayerPos(playerid, Pos[13][0], Pos[13][1], Pos[13][2]);   //fourteenth line  = 13
SetPlayerFacingAngle(playerid, Pos[13][3]);                     //fourteenth line  = 13
Reply


Messages In This Thread
[Help] explanation Float Pos - by INKISICION - 18.01.2015, 20:12
Re: [Help] explanation Float Pos - by Schneider - 18.01.2015, 20:24
Respuesta: [Help] explanation Float Pos - by INKISICION - 18.01.2015, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)