SA-MP Forums Archive
Help with adding 3Dtextlabel to a NPC - 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: Help with adding 3Dtextlabel to a NPC (/showthread.php?tid=114624)



Help with adding 3Dtextlabel to a NPC - Flake. - 20.12.2009

ok i have made some NPC's and would like to add a 3Dtextlabel to them and it isnt working, i get my driver with NO plane standing out side driving school

Код:
	else if(!strcmp(playername,"Beagle",true)) {
	  new Text3D:Beagle = Create3DTextLabel("Beagledriver(ID:0)",COLOR_GREEN,30.0,40.0,50.0,40.0,0);
	  Attach3DTextLabelToVehicle(playerid, Beagle, 0, 0, 5);
      SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
	  PutPlayerInVehicle(playerid, Beagle, 0);
	}
  return 1;
}
and for some reason isnt working could you please help me


Re: Help with adding 3Dtextlabel to a NPC - Rac3r - 20.12.2009

Код:
Attach3DTextLabelToVehicle(playerid, Beagle, 0, 0, 5);
Use Attach3DTextLabelToPlayer


Re: Help with adding 3Dtextlabel to a NPC - Flake. - 20.12.2009

when i do this i get and it dosent work

Код:
C:\Users\ELLIOT\Desktop\Elliots Stuff\PlayGround 3.4\filterscripts\MegaTransport.pwn(46) : warning 219: local variable "Beagle" shadows a variable at a preceding level
C:\Users\ELLIOT\Desktop\Elliots Stuff\PlayGround 3.4\filterscripts\MegaTransport.pwn(47) : warning 213: tag mismatch
C:\Users\ELLIOT\Desktop\Elliots Stuff\PlayGround 3.4\filterscripts\MegaTransport.pwn(47) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.



Re: Help with adding 3Dtextlabel to a NPC - Flake. - 20.12.2009

Fixed