SA-MP Forums Archive
3DTextLabel - Bugzzz, HELP! - 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: 3DTextLabel - Bugzzz, HELP! (/showthread.php?tid=297480)



3DTextLabel - Bugzzz, HELP! - Hellhound - 16.11.2011

Well, This is the Script:
pawn Код:
/* Top of Script */
new pu;
new Text3D:put;

/* Then OnDialogResponse or something */
if(dialogid == Dialog_PickUp)
{
    if(!response) return 0;
    new Float:X,Float:Y,Float:Z;
    new txtP[128];
    GetPlayerPos(playerid, X,Y,Z);
    pu = CreatePickup(1239, 1, X, Y, Z, -1);
    format(txtP, sizeof(txtP), "{FF0000}%s\n{33FF33}- Text", inputtext);
    put = Create3DTextLabel(txtP,Yellow,X,Y,Z,40.0,-1, 1);
    return 1;
}
There are no Errors, But when it creating the Pickup and the 3Dtextlabel, The 3D Text being shown first, After 2 seconds it's disappear, and then the Pickup getting shown.

HELP


Re: 3DTextLabel - Bugzzz, HELP! - Hellhound - 16.11.2011

pawn Код:
/* Top of Script */
new pu;
new Text3D:put;

/* Then OnDialogResponse or something */
if(dialogid == Dialog_PickUp)
{
    if(!response) return 0;
    new Float:X,Float:Y,Float:Z;
    new txtP[128];
    GetPlayerPos(playerid, X,Y,Z);
    pu = CreatePickup(1239, 1, X, Y, Z, -1);
    format(txtP, sizeof(txtP), "{FF0000}%s\n{33FF33}- Text", inputtext);
    put = Create3DTextLabel(txtP,Yellow,X,Y,Z,40.0,-1, 1);
    return 1;
}
Never mine... Fixed, In the
pawn Код:
put = Create3DTextLabel(txtP,Yellow,X,Y,Z,40.0,-1, 1);
It was needed to be
pawn Код:
put = Create3DTextLabel(txtP,Yellow,X,Y,Z,40.0,GetPlayerVirtualWorld(playerid), 1);
Ty anywat