help | text on vehicle - 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 | text on vehicle (
/showthread.php?tid=125153)
help | text on vehicle -
Daniel13145 - 02.02.2010
hello,
i tried to put this code on my gamemode :
Код:
new Car3DText[50];
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == 522)
{
Car3DText = "Text";
new Text3D:Created3D = Create3DTextLabel(Car3DText,0x008080FF,0.0,0.0,0.0,0.0,0);
Attach3DTextLabelToVehicle(Created3D,vehicleid,0.0,0.0,0.0);
}
return 1;
}
but when i see/enter vehicleid 522 ( nrg500 ) i dont see "Text" on the vehicle.
why that?
the vehicles at OnGameModeInit
Re: help | text on vehicle -
Correlli - 02.02.2010
vehicleid != modelid
vehicleid is
not the modelid. Use
GetVehicleModel function to check the model-ID of the vehicle.
Re: help | text on vehicle -
Kurence - 02.02.2010
vehicle id is ID of vehicle used on destroying, moving etc.
use :
Код:
if(GetVehicleModel(vehicleid) == 522){
.
.
.
you wrote first xD
Re: help | text on vehicle -
Daniel13145 - 02.02.2010
Код:
public OnVehicleSpawn(vehicleid)
{
//AddStaticVehicle(522,660.0554,1719.1187,6.5642,12.7699,8,82);
if(GetVehicleModel(vehicleid) == 522)
{
Car3DText = "Text";
new Text3D:Created3D = Create3DTextLabel(Car3DText,0x008080FF,0.0,0.0,0.0,0.0,0);
Attach3DTextLabelToVehicle(Created3D,vehicleid,0.0,0.0,0.0);
}
return 1;
}
Still not working
Re: help | text on vehicle -
Daniel13145 - 02.02.2010
Common guys, pleasae help me
Re: help | text on vehicle -
Nakash - 02.02.2010
Quote:
Originally Posted by Daniel13145
Common guys, pleasae help me 
|
Explain more.
You want when the player enters a vehicle he gets a message?
Re: help | text on vehicle -
Daniel13145 - 02.02.2010
Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by Daniel13145
Common guys, pleasae help me 
|
Explain more.
You want when the player enters a vehicle he gets a message?
|
Nope, i want to do over vehicle id 522 text
example :
Message ( its the text over the vehicle )
___
/___\ - (its the vehicle )
understand?
Re: help | text on vehicle -
Daniel13145 - 02.02.2010
guys please help me :\
Re: help | text on vehicle -
Daniel13145 - 02.02.2010
help me guys V_V
Re: help | text on vehicle -
hvampire - 02.02.2010
so u get any error or warning while compiling or it just compile fine and u dont see text?