SA-MP Forums Archive
Create3DTextLabel Help [solved] - 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: Create3DTextLabel Help [solved] (/showthread.php?tid=138465)



Create3DTextLabel Help [solved] - Nakash - 02.04.2010

solved.


Re: Create3DTextLabel Help - cessil - 02.04.2010

you're creating the variable in a command, after that command is finished so it the variable, make it somewhere where it's going to stay alive like at the top of your script


Re: Create3DTextLabel Help - Steven82 - 02.04.2010

Is this how people like in some severs above the, or in the middle of the doorway it like says "Los Santoes Police Department"


Re: Create3DTextLabel Help - Nakash - 02.04.2010

Quote:
Originally Posted by cessil
you're creating the variable in a command, after that command is finished so it the variable, make it somewhere where it's going to stay alive like at the top of your script
Okay, I did this in the top of the gamemode:

pawn Код:
new Text3D: VehicleText[MAX_VEHICLES];
Then added this to a command:
pawn Код:
new vehicleplate = 123456;
                            VehicleText[carid] = Create3DTextLabel(vehicleplate,0x008080FF,0.0,0.0,0.0,15,0,1)
                                Attach3DTextLabelToVehicle(VehicleText[carid], carid, 0.0, 0.0, 1.0);
Then I added this in another command:
pawn Код:
Delete3DTextLabel(VehicleText[vehicleid]);
It didn't work, can you guys help me solve this problem please?