Create3DTextLabel problem help me please
#1

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);
Reply
#2

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

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);
Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)