Text Label - 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 Label (
/showthread.php?tid=159745)
Text Label -
Hash [NL-RP] - 14.07.2010
Im want to attach a 3D text Label to every vehicle on the server, but on wiki it says you can attach it to one,
What is the number to add the text draw to every vehicle on the server ?
Attach3DTextLabelToVehicle( MyLabel, vehicle_id, 0.0, 0.0, 2.0);
Please help me someone
Re: Text Label -
oliverrud - 14.07.2010
Not sure if this would work:
On top add:
pawn Код:
#define MAX_VEHICLES 1000
Then add wherever it should be added:
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
Attach3DTextLabelToVehicle( MyLabel,i, 0.0, 0.0, 2.0);
}
Re: Text Label -
Hash [NL-RP] - 14.07.2010
Quote:
Originally Posted by oliverrud
Not sure if this would work:
On top add:
pawn Код:
#define MAX_VEHICLES 1000
Then add wherever it should be added:
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++) { Attach3DTextLabelToVehicle( MyLabel,i, 0.0, 0.0, 2.0); }
|
Thank you very much it works great
i was working on this for atleast 3 hours and you made it work
thank you very much
Re: Text Label -
oliverrud - 14.07.2010
No problem