10.07.2018, 16:03
I want to create an object in different places using variables.
I tried this but it's not working, what to do?
Код:
#define MAX_LOCKER 2 enum __lockerDat { Float:lockerPos[12], lockerID } new lockerData[MAX_LOCKER][__lockerDat] = { {{-36.9, -91.6, 1003, 0, 0, 180, -1, -1, -1, 200.0, 0.0}}, // object (man_safenew) (1) {{-18.2, -49.6, 1003, 0, 0, 316, -1, -1, -1, 200.0, 0.0}} }; forward loadlockerData(); public loadlockerData() { for(new i = 0; i < MAX_LOCKER; i++) { lockerData[i][lockerPlace][0] = CreateDynamicObject(1829, lockerData[i][lockerPos][0], lockerData[i][lockerPos][1], lockerData[i][lockerPos][2], lockerData[i][lockerPos][3], lockerData[i][lockerPos][4], lockerData[i][lockerPos][5], lockerData[i][lockerPos][6], lockerData[i][lockerPos][7], lockerData[i][lockerPos][8], lockerData[i][lockerPos][9], lockerData[i][lockerPos][10], lockerData[i][lockerPos][11]); lockerData[i][lockerID] = i; } return 1; }