SA-MP Forums Archive
Text Traw - 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: Text Traw (/showthread.php?tid=159519)



Text Draw - Hash [NL-RP] - 13.07.2010

What is wrong with this, it should show a text draw above the cars showing their plate which is 'cPlate'
It compiles fine but the Text draw dont show.

for(new h = 0; h < sizeof(CarInfo); h++)
{
if(CarInfo[ownvehkey][cPlate] == 0)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[______]");
CarLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,CarInfo[ownvehkey][cLocationx]+2, CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10, 0);
}
if(CarInfo[ownvehkey][cPlate] == 1)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[%d]",CarInfo[ownvehkey][cPlate]);
CarLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,CarInfo[ownvehkey][cLocationx], CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10, 0);
}
}


Re: Text Traw - DJDhan - 13.07.2010

I don't see you attaching the 3D Text label to the vehicle.

Attach3DTextLabelToVehicle should help.


Re: Text Traw - oliverrud - 13.07.2010

for(new h = 0; h < sizeof(CarInfo); h++)
{
if(CarInfo[ownvehkey][cPlate] == 0)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[______]");
CarLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,CarInfo[ownvehkey][cLocationx]+2, CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10.0,0,0);
}
if(CarInfo[ownvehkey][cPlate] == 1)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[%d]",CarInfo[ownvehkey][cPlate]);
CarLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,CarInfo[ownvehkey][cLocationx], CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10.0,0,0);
}
}


Re: Text Traw - Hash [NL-RP] - 13.07.2010

That wiki dont help me that much, i need a text draw for cars 184 to 800,
can someone help me make it