SA-MP Forums Archive
Object not showing up - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Object not showing up (/showthread.php?tid=106976)



Object not showing up - Striker_Moe - 07.11.2009

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?


Re: Object not showing up - Djiango - 07.11.2009

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