[Help] explanation Float Pos
#1

Coordinates are 14, I have defined 14 and 14
which is the total of cordenadas they are, but would like to know how to make are not alteatorias want to be one x1 say

I put in the number if it was usadoa now use the number 2 and so

pawn Код:
new Float:Pos[14][14] =
{
{2601.381835,-2924.262207,1003.614258,172.96},//1#   -  First follow this after the 2nd
{2581.121093,-2923.645996,1003.614258,172.96},//2#   -  follow after this number 3
{2561.837646,-2923.138183,1003.614258,172.96},//3#   -  follow after this number 4
{2622.049316,-2922.666992,1003.614197,179.15},
{2639.294921,-2924.269042,1003.594178,178.23},
{2663.064941,-2924.369628,1003.593995,180.20},
{2681.447265,-2924.868408,1003.593751,173.48},
{2681.715576,-3038.998779,1003.5931310,3.06},
{2663.098876,-3039.159912,1003.593934,3.17},
{2642.697265,-3038.856201,1003.593995,359.05},
{2622.267089,-3038.787841,1003.593812,359.83},
{2603.442626,-3040.295166,1003.593567,351.02},
{2581.035400,-3039.190917,1003.598511,0.00},
{2561.512451,-3039.699707,1003.613892,358.95}
};
I hope you will want to understand ordered their execution
Reply
#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
#3

Thanks for clarifying this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)