Probem with Dynamic3DLabels - 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: Probem with Dynamic3DLabels (
/showthread.php?tid=174320)
Probem with Dynamic3DLabels -
Voldemort - 05.09.2010
pawn Код:
new string[256];
format(string,sizeof(string),"OBJ: ID:%d Name:%s Int:%d \n X:%0.2f Y:%0.2f Z:%0.2f \n RX:%0.2f RY:%0.2f RZ:%0.2f \n Flag1: %d Flag2: %d",
gObj[i][oID],gObj[i][oName],gObj[i][oInt],gObj[i][oX],gObj[i][oY],gObj[i][oZ],
gObj[i][oRX],gObj[i][oRY],gObj[i][oRZ],gObj[i][oFlag],gObj[i][oFlag2]);
Objects[i] = CreateDynamic3DTextLabel(string,COLOR_SAMP,gObj[i][oX],gObj[i][oY],gObj[i][oZ],500.0,-1,-1,0,-1,-1,-1,100.0);
print(string);
Prob is that 3DLabels all are in 0 0 0 coords, but in print and in format its shows gObj[i][oX],gObj[i][oY],gObj[i][oZ] correct, but when I use same Coords for 3DL pos its sets to 0, did I made something wrong or Streamer by Incognito have bug?
Re: Probem with Dynamic3DLabels -
iggy1 - 05.09.2010
Silly question but did you declare Objects[i] as 3dtext? ie,
pawn Код:
new Text3D:Objects[MAX_PLAYERS];
Re: Probem with Dynamic3DLabels -
Voldemort - 05.09.2010
Yeah^^
pawn Код:
new Text3D:Objects[4313]; //my ammount
Damn, its bug in Streamer, because with Pawno Built-in 3D labels its works fine