SA-MP Forums Archive
3DTextLabel - 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: 3DTextLabel - help (/showthread.php?tid=187058)



3DTextLabel - help - Steven82 - 31.10.2010

Hello i was wondering how to make just one varible for a 3DTextLabel and say it works for about 20 or so cars/players. Ex.


pawn Код:
new Text3D:textlabel;
new Text3D:textlabel2;
Thats how it looks in my script right now but with about 25 of them so far.

I was wondering if you make them share the variable and like make it work for 20 cars. Someone told me to do this but it didn't even work..

pawn Код:
new Text3D:textlabel[20];
Then they said that it should work for 20 cars or so, or something like that. One thing it didnt work. So i was wondering is there a way/real way to make them share a variable or is it impossible? :P

Im sorry if this is bad grammer but i am trying to type fast. I got to go in like 10 minutes.


Re: 3DTextLabel - help - Jeffry - 31.10.2010

pawn Код:
textlabel[0] = Create3DTextLabel(...
textlabel[1] = Create3DTextLabel(...
//And so on.
Then it should work.

If not, maybe you could show us your code, then we can fix it.


Re: 3DTextLabel - help - Steven82 - 31.10.2010

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
pawn Код:
textlabel[0] = Create3DTextLabel(...
textlabel[1] = Create3DTextLabel(...
//And so on.
Then it should work.

If not, maybe you could show us your code, then we can fix it.
Oh ok maybe i missed that part in the MSN message the guy sent me. Thanks man i'll try it real quick