28.07.2010, 02:22
(
Последний раз редактировалось Toni; 28.07.2010 в 02:34.
)
Hello, I was just wondering (in this case; using Incognito's streamer plugin)
how could you create objects with arrays?
I've tried it before, but it doesn't show up as it is suppose to.
the only problem that is not actually "working" is the configuration at the end, -1, -1, -1, 300.
How would I insert that into an array?
Using Float?
EDIT: Example below.
Any Ideas?
how could you create objects with arrays?
I've tried it before, but it doesn't show up as it is suppose to.
the only problem that is not actually "working" is the configuration at the end, -1, -1, -1, 300.
How would I insert that into an array?
Using Float?
EDIT: Example below.
pawn Код:
new Float:gObjects[6][6] =
{
{1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0},
{1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0},
{1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0},
{1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0},
{1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0},
{1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0}
};
new gObjectsID[6][5] =
{
{2323},
{2323},
{2323},
{2323},
{2323},
{2323}
};
new Float:ObjConfig[6][4] =
{
{-1, -1, -1, 300.0},
{-1, -1, -1, 300.0},
{-1, -1, -1, 300.0},
{-1, -1, -1, 300.0},
{-1, -1, -1, 300.0},
{-1, -1, -1, 300.0},
};
//and then a function to create it.
for(new i = 0; i < 6; i++)//Looping through 6, since there are only 6 objects.
{
CreateDynamicObject(gObjectID[i], gObject[1], gObject[2], gObject[3], gObject[4], gObject[5], gObject[6], ObjConfig[1], ObjConfig[2], ObjConfig[3]);
}