Help in object creating
#1

I want to create an object in different places using variables.

Код:
#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;
}
I tried this but it's not working, what to do?
Reply


Messages In This Thread
Help in object creating - by Ahmadd - 10.07.2018, 16:03
Re: Help in object creating - by Ahmadd - 11.07.2018, 06:34
Re: Help in object creating - by Florin48 - 11.07.2018, 06:36
Re: Help in object creating - by Ahmadd - 11.07.2018, 12:25
Re: Help in object creating - by Sew_Sumi - 11.07.2018, 19:43
Re: Help in object creating - by Florin48 - 11.07.2018, 20:13
Re: Help in object creating - by Sew_Sumi - 11.07.2018, 20:30
Re: Help in object creating - by NaS - 11.07.2018, 20:47
Re: Help in object creating - by Sew_Sumi - 11.07.2018, 21:37

Forum Jump:


Users browsing this thread: 2 Guest(s)