SA-MP Forums Archive
3d Label overlap problem[REP +] - 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: 3d Label overlap problem[REP +] (/showthread.php?tid=587950)



3d Label overlap problem[REP +] - [TMS]Legena - 04.09.2015

Hello guys I have problem with 3d label! Problem is... I attached some 3d labels on vehicle and when I enter vehicle and i rotate my camera on car roof(90 degrees) it overlaps... How could I fix that?


Re: 3d Label overlap problem[REP +] - Bingo - 04.09.2015

Mind to show a screensshot and code(s).


Re: 3d Label overlap problem[REP +] - [TMS]Legena - 04.09.2015

Код:
new ownerstring[100];
				format(ownerstring,sizeof(ownerstring),"[Vehicle Owner]:[%s]",VehicleInfo[i][Owner]);
				COLabel[i] = Create3DTextLabel(ownerstring, -1, 0.0, 0.0, 0.0, 7.5, 0, 1 );
	    		Attach3DTextLabelToVehicle(COLabel[i] , VehicleIDs[i], 0.0, 0.0, 0.6);

	    		new modelstring[100];
				format(modelstring,sizeof(modelstring),"[Vehicle Name(Model)]:[%s(%d)]",VehicleName[GetVehicleModel(i)-400],VehicleInfo[i][Model]);
				COLabel[i] = Create3DTextLabel(modelstring, -1, 0.0, 0.0, 0.0, 7.5, 0, 1 );
	    		Attach3DTextLabelToVehicle(COLabel[i] , VehicleIDs[i], 0.0, 0.0, 0.4);

	    		new pricestring[100];
				format(pricestring,sizeof(pricestring),"[Price]:[%d]",VehicleInfo[i][Price]);
				COLabel[i] = Create3DTextLabel(pricestring, -1, 0.0, 0.0, 0.0, 7.5, 0, 1 );
	    		Attach3DTextLabelToVehicle(COLabel[i] , VehicleIDs[i], 0.0, 0.0, 0.2);




As we can see it overlap when we change camera view position!