Object
#1

Hello, I have a command wich attaches me an object. Why the object is not showing?

On top of the script, the definition:
PHP код:
new Matura[MAX_PLAYERS]; 
In the command:
PHP код:
Matura[playerid] = CreateObject(17780.0,0.0,0.0,1.73500.00.00.0);
AttachObjectToPlayer(Matura[playerid], playerid, -0.20.15, -100, -90); 
Reply
#2

Try changing all instances of "CreateObject" to "CreateDynamicObject". It usually works in most cases.
Reply
#3

It attaches perfectly for me, no problems at all. I just tried it through an I-ZCMD command:

Код:
new Matura[MAX_PLAYERS];

CMD:test(playerid,params[])
{
	Matura[playerid] = CreateObject(1778, 0.0,0.0,0.0,1.7350, 0.0, 0.0, 0.0); 
	AttachObjectToPlayer(Matura[playerid], playerid, -0.2, 0.15, -1, 0, 0, -90);
	return CMD_SUCCESS;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)