Update3DTextLabel Question - 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: Update3DTextLabel Question (
/showthread.php?tid=186576)
Update3DTextLabel Question -
Hal - 29.10.2010
I need to have my 3D textdraws to update when I change my businessname. Im a bit confused on how to use Update3DTextLabel()
Update3DTextLabelText(ID, COLOR_ADMINBLUE, string );
it asks for the ID of the label, i have a few and i do not know what to put there.
The labels are in their own public, and /businessname is its own command :\
I just dont know how to make it update when it changes.
Thanks lots
Re: Update3DTextLabel Question -
TouR - 29.10.2010
https://sampwiki.blast.hk/wiki/Update3DTextLabelText
here you are
Re: Update3DTextLabel Question -
Retardedwolf - 29.10.2010
Update3DTextLabel(Text3D:id, color, text[])
Example : Update3DTextLabel ( _:label , 0xFFFFFFAA, "Hal says hai");
Re: Update3DTextLabel Question -
Hal - 29.10.2010
Quote:
Originally Posted by Retardedwolf
Update3DTextLabel(Text3D:id, color, text[])
Example : Update3DTextLabel ( _:label , 0xFFFFFFAA, "Hal says hai");
|
pawn Код:
format( string, sizeof( string ), "Business ID: %d \n %s", h, Businesses[h][bName]);
Create3DTextLabel( string , COLOR_ADMINBLUE, BIZx, BIZy, BIZz, 20, 0 );
//THEN THE UPDATE
Update3DTextLabel(Text3D:id, color, text[])
what would the update be?
Re: Update3DTextLabel Question -
MadeMan - 29.10.2010
You need to save your 3D text id's.
Re: Update3DTextLabel Question -
Hal - 29.10.2010
Quote:
Originally Posted by MadeMan
You need to save your 3D text id's.
|
how would i do that?
because it creates them according to the businesses spawned
Re: Update3DTextLabel Question -
MadeMan - 29.10.2010
pawn Код:
new Text3D:Labels[NUMBER_OF_BUSINESSES];
pawn Код:
format( string, sizeof( string ), "Business ID: %d \n %s", h, Businesses[h][bName]);
Labels[h] = Create3DTextLabel( string , COLOR_ADMINBLUE, BIZx, BIZy, BIZz, 20, 0 );
Then use Labels[businessid] in your update.
Re: Update3DTextLabel Question -
Hal - 29.10.2010
Quote:
Originally Posted by MadeMan
pawn Код:
new Text3D:Labels[NUMBER_OF_BUSINESSES];
pawn Код:
format( string, sizeof( string ), "Business ID: %d \n %s", h, Businesses[h][bName]); Labels[h] = Create3DTextLabel( string , COLOR_ADMINBLUE, BIZx, BIZy, BIZz, 20, 0 );
Then use Labels[businessid] in your update.
|
thanks. ill test it out