Cуmo se hacнa un array 3D tipo float?
#4

Hay varias formas de hacerlo. Te darй un ejemplo:

pawn Код:
static const Float:Races[9][5][3] =
{
    //    2D 0                2D 1                2D 2                2D 3                2D 4
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 0
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 1
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 2
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 3
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 4
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 5
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 6
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, // Primer dimensiуn: ID 7
    {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}} // Primer dimensiуn: ID 8
    //  0    1     2        0    1     2        0    1     2        0    1     2        0    1     2
};
Reply


Messages In This Thread
Cуmo se hacнa un array 3D tipo float? - by Swedky - 22.11.2014, 18:02
Respuesta: Cуmo se hacнa un array 3D tipo float? - by oOFotherOo - 22.11.2014, 18:54
Respuesta: Cуmo se hacнa un array 3D tipo float? - by OTACON - 22.11.2014, 19:05
Respuesta: Cуmo se hacнa un array 3D tipo float? - by DesingMyCry - 22.11.2014, 21:30
Re: Cуmo se hacнa un array 3D tipo float? - by Daniel-92 - 22.11.2014, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)