SA-MP Forums Archive
Pickup and 3DLabel in another virtual world - 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: Pickup and 3DLabel in another virtual world (/showthread.php?tid=611098)



Pickup and 3DLabel in another virtual world - MayaEU - 02.07.2016

Hello, how to make those show in virtual world 27?

pawn Code:
CreateStreamPickup(1275, 1, 208.8182,-100.6965,1005.2578 , 100 ); //inside binco
    Create3DTextLabel("[Binco]\n faction/families",0xFFFFFFFF, 217.6668,-98.4731,1005.2578, 20,0,1);



Re: Pickup and 3DLabel in another virtual world - [cS]Owain - 02.07.2016

These are correct format of the above functions:
Code:
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
So this is how you make 3d text label appear in world 27 :
Quote:

Create3DTextLabel("[Binco]\n faction/families",0xFFFFFFFF, 217.6668,-98.4731,1005.2578, 100, 27,1);

CreateStreamPickup is not a SA-MP native, it is from a include and by looking at that include it doesn't support custom worldid. Use CreatePickup instead


Re: Pickup and 3DLabel in another virtual world - VincenzoDrift - 02.07.2016

For Pickup if you use this include i don't know. I suggest you to use Incognito's streamer.

For 3D Text write this:
Code:
Create3DTextLabel("[Binco]\n faction/families", 0xFFFFFFFF, 217.6668, -98.4731, 1005.2578, 20, 27, 1);
I suggest you to read this: https://sampwiki.blast.hk/wiki/Create3DTextLabel


Re: Pickup and 3DLabel in another virtual world - MayaEU - 02.07.2016

But why do i get warning, it tells me binco never used

pawn Code:
new binco;
    binco = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, 27);



Re: Pickup and 3DLabel in another virtual world - xJayce - 02.07.2016

You assigned a value to the variable 'binco' but never used it in the code.


Re: Pickup and 3DLabel in another virtual world - MayaEU - 02.07.2016

What to do then?


Re: Pickup and 3DLabel in another virtual world - xJayce - 02.07.2016

if you aren't planning to use the pickup anywhere else in the script just do
PHP Code:
CreatePickup(124221503.33591432.358510.119127); 
else, the variable binco should be global not local and use it under OnPlayerPickUpPickUp or so.


Re: Pickup and 3DLabel in another virtual world - [cS]Owain - 02.07.2016

Just remove 'binco =' and 'new binco;' part.


Re: Pickup and 3DLabel in another virtual world - MayaEU - 02.07.2016

it doesnt work it doesnt show it in the interior id 15


Re: Pickup and 3DLabel in another virtual world - MayaEU - 02.07.2016

Anyone?