SA-MP Forums Archive
Create3DTextLabel problem help me please - 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)
+--- Thread: Create3DTextLabel problem help me please (/showthread.php?tid=629568)



Create3DTextLabel problem help me please - Janpatrick22 - 28.02.2017

Hello guys i have a problem with 3dtext lables when i add one it say me:


Код:
warning 202: number of arguments does not match definition
And i cant see the label in game



Код:
	Create3DTextLabel("Press 'F' to buy somthing",COLOR_RED,251.99, 117.36, 1003.22,4.0);



Re: Create3DTextLabel problem help me please - GoldenLion - 28.02.2017

https://sampwiki.blast.hk/wiki/Create3DTextLabel
You forgot the last 2 parameters.


Re: Create3DTextLabel problem help me please - Djean - 28.02.2017

As stated above, you forgot the last two parameter required for the code to work.

-virtualworld : This parameter is the virtual world you want the TextLabel to show up in, use /world at the spot in game to see the current VW of your player

-testLOS : This parameter is used if you want the text label to show up behind objects. Either 0 or 1

Код:
 Create3DTextLabel("text", color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS);
So your code would be

Код:
Create3DTextLabel("Press 'F' to buy somthing",COLOR_RED,251.99, 117.36, 1003.22,4.0, virtualworld, 0);



Re: Create3DTextLabel problem help me please - ISmokezU - 28.02.2017

Quote:
Originally Posted by Djean
Посмотреть сообщение
As stated above, you forgot the last two parameter required for the code to work.

-virtualworld : This parameter is the virtual world you want the TextLabel to show up in, use /world at the spot in game to see the current VW of your playerJ

-testLOS : This parameter is used if you want the text label to show up behind objects. Either 0 or 1

Код:
 Create3DTextLabel("text", color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS);
So your code would be

Код:
Create3DTextLabel("Press 'F' to buy somthing",COLOR_RED,251.99, 117.36, 1003.22,4.0, virtualworld, 0);
Yeah If you define virtualworld else you would get an undefined symbol virtualworld (Just incase he doesn't know).

Код:
Create3DTextLabel("Press 'F' to buy somthing",COLOR_RED,251.99, 117.36, 1003.22,4.0, 0, 0);