SA-MP Forums Archive
[HELP]CreatePickupWith3DText - 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: [HELP]CreatePickupWith3DText (/showthread.php?tid=265677)



[HELP]CreatePickupWith3DText - decastro96 - 01.07.2011

stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
CreatePickup( 1318, 1, 1825.503051, -1538.151855, 13.546875, 0 ); // hej hej
Create3DTextLabel( Vip Garage, 0xFFFFFFFF, X, Y, Z+0.75, 40.0, 0 );
return 1;
}

Why are the no Text


Re: [HELP]CreatePickupWith3DText - [HiC]TheKiller - 02.07.2011

pawn Код:
stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
    Create3DTextLabel(text, 0xFFFFFFFF, X, Y, Z+0.75, 40.0, Virtualworld, 0);
    CreatePickup(model, type, X, Y, Z, Virtualworld);
    return 1;
}
That should work.


Re: [HELP]CreatePickupWith3DText - dr.pepper - 02.07.2011

You forgot to add quotes ("") on this: Create3DTextLabel


Re: [HELP]CreatePickupWith3DText - Shadoww5 - 02.07.2011

Put the stock at the of your GM:

PHP код:
stock CreatePickupWith3DText(modeltypeFloat:XFloat:YFloat:ZVirtualworldtext[])
{
    
Create3DTextLabel(text0xFFFFFFFFXYZ+0.7540.0Virtualworld0);
    
CreatePickup(modeltypeXYZVirtualworld);
    return 
1;

And use this where you need:

PHP код:
CreatePickupWith3DText(131811825.503051, -1538.15185513.5468750"Vip Garage"); 



Re: [HELP]CreatePickupWith3DText - decastro96 - 02.07.2011

stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
CreatePickupWith3DText(1318, 1, 1825.503051, -1538.151855, 13.546875, 0, "Vip Garage");
Create3DTextLabel(text, 0xFFFFFFFF, X, Y, Z+0.75, 40.0, Virtualworld, 0);
CreatePickup(model, type, X, Y, Z, Virtualworld);
return 1;
}

?


Re: [HELP]CreatePickupWith3DText - Shadoww5 - 02.07.2011

Read my last post.