SA-MP Forums Archive
Numbers on every Object - 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)
+--- Thread: Numbers on every Object (/showthread.php?tid=414431)



Numbers on every Object - Narushi - 09.02.2013

Why it dont works?
The printf is printing 999 times the coords "0.00, 0.00, 0.00".
Sorry for bad english ^^

Код:
for(new i=0; i<MAX_OBJECTS; i++)
	{
		new str[5], Float:x, Float:y, Float:z;
		format(str,5,"%i",i);
		GetObjectPos(i, x, y, z);
		Create3DTextLabel(str, 0xAA0000FF, x, y, z, 150, 0, 0);
		printf("%i, ~ %f, %f, %f",i,x,y,z);
	}



Re: Numbers on every Object - MP2 - 09.02.2013

Are the objects actually created? Are you using a streamer (CreateDynamicObject)?