02.10.2014, 17:28
#define MAX_OBJECT 100
static Object[MAX_OBJECT];
and for example...
i want to do all like this
But how can I do, that the "object [number] =" appear in each line automaticaly, because I have 3000 objects and it really piss me off to write in each line "object [number] ="...
static Object[MAX_OBJECT];
and for example...
Код HTML:
CreateObject(12805, -1073.17, -730.09, 45.10, 0.00, 0.00, 0.50); CreateObject(13198, -1009.79, -737.51, 36.09, 0.00, 0.00, 0.00); CreateObject(17019, -1097.86, -599.76, 36.91, 0.00, 0.00, 0.00); CreateObject(17019, -1077.68, -599.82, 36.93, 0.00, 0.00, 0.00); CreateObject(12934, -1101.30, -625.07, 34.32, 0.00, 0.00, 0.00); CreateObject(12934, -1101.19, -637.77, 34.32, 0.00, 0.00, 0.00); CreateObject(12934, -1101.73, -685.37, 34.32, 0.00, 0.00, 0.00); CreateObject(3627, -982.00, -666.96, 33.46, 0.00, 0.00, 0.00); CreateObject(3578, -988.13, -676.83, 30.28, 0.00, 0.00, 90.00); CreateObject(3578, -988.13, -667.00, 30.28, 0.00, 0.00, 90.00);
Код HTML:
Object[1] = CreateObject(12805, -1073.17, -730.09, 45.10, 0.00, 0.00, 0.50); Object[2] = CreateObject(13198, -1009.79, -737.51, 36.09, 0.00, 0.00, 0.00); CreateObject(17019, -1097.86, -599.76, 36.91, 0.00, 0.00, 0.00); CreateObject(17019, -1077.68, -599.82, 36.93, 0.00, 0.00, 0.00); CreateObject(12934, -1101.30, -625.07, 34.32, 0.00, 0.00, 0.00); CreateObject(12934, -1101.19, -637.77, 34.32, 0.00, 0.00, 0.00); CreateObject(12934, -1101.73, -685.37, 34.32, 0.00, 0.00, 0.00); CreateObject(3627, -982.00, -666.96, 33.46, 0.00, 0.00, 0.00); CreateObject(3578, -988.13, -676.83, 30.28, 0.00, 0.00, 90.00); CreateObject(3578, -988.13, -667.00, 30.28, 0.00, 0.00, 90.00); CreateObject(3578, -988.13, -656.32, 30.28, 0.00, 0.00, 90.00);