3D text help - 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: 3D text help (
/showthread.php?tid=208197)
3D text help -
darkknight123 - 08.01.2011
Hello Im trying to put 3D texts on cars in my GM I use this
Quote:
{
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel( "MW-DM", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
for(new i=0; i<MAX_VEHICLES; i++)
Attach3DTextLabelToVehicle( vehicle3Dtext, i, 0.0, 0.0, 2.0);
|
but when I get in game to test I dont see it, please help
Re: 3D text help -
Padarom - 08.01.2011
pawn Код:
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel("MW-DM", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
for(new i=0; i<MAX_VEHICLES; i++)
{
Attach3DTextLabelToVehicle(vehicle3Dtext, i, 0.0, 0.0, 2.0);
}
Try it like this. Otherwise the loop does nothing.
Re: 3D text help -
darkknight123 - 08.01.2011
I tested it and still nothing
wow i feal stupid im mising an include arnt I? what is the include for 3D texts?
Re: 3D text help -
John_F - 08.01.2011
<a_samp>
hehe....
Re: 3D text help -
darkknight123 - 08.01.2011
no i got that -.- but idk what im doing wrong its just not working for me
Re: 3D text help -
Hal - 08.01.2011
Quote:
Originally Posted by darkknight123
no i got that -.- but idk what im doing wrong its just not working for me
|
Where are you placing this in your script?
Re: 3D text help -
darkknight123 - 08.01.2011
Under public OnGameModeInit()
Re: 3D text help -
John_F - 08.01.2011
Quote:
Originally Posted by darkknight123
no i got that -.- but idk what im doing wrong its just not working for me
|
I typed that in response to:
Quote:
Originally Posted by darkknight123
I tested it and still nothing
wow i feal stupid im mising an include arnt I? what is the include for 3D texts?
|
And obviously it was a joke.
All the functions said previously are included by default.
Place the code at the end of ongamemodeinit, AFTER the vehicle spawns, otherwise it won't be putting the textdraw anywhere.
Re: 3D text help -
Padarom - 08.01.2011
You know what John_F? I think you just solved also one of my problems xD
Already thought about how he couldn't include a_samp but uses basic functions.
Re: 3D text help -
darkknight123 - 08.01.2011
hmhmhm I'v tryed and still nothing I'v added it right before the return 1; on the end of OnGamemodeint and still wont work :/