Object not showing up
#1

Hi there.

I got this here:

Код:
	new playa=random(40);
	new msg[24];
	if(IsPlayerConnected(playa)==0)
	{
	while(IsPlayerConnected(playa)==0)
	{
	playa=random(MAX_PLAYERS);
	}
	}

	arrow[playerid] = CreatePlayerObject(playerid, 1318, ex, ey, ez, kx, ky, kz);
	AttachObjectToPlayer(arrow[playerid],playa, 0.0, 0.0, 1.6, 0, 1.5, 2);

	format(msg, sizeof msg, "ID %d", playa);
	SendClientMessage(playerid,0xFFFF00AA,msg);
Everything works fine, and when I get the message with ID and teleport to the ID, i cant see any object there. Why?
Reply
#2

Because "CreatePlayerObject" only creates a player object, visible to the playerid given.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)