SA-MP Forums Archive
Troubles with Create3DTextLabel - 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: Troubles with Create3DTextLabel (/showthread.php?tid=146407)



Troubles with Create3DTextLabel - dcmd_crash - 07.05.2010

None of these 3d texts are showing, anybody know why?
pawn Код:
// OnGameModeInit
stock CreateNewbieSpawn()
{
    Rule1 = CreatePickup(1239, 23, 2518.8569,-1458.5496,23.9750, -1);
    Rule1_3D = Create3DTextLabel("Don't cheat!", Red, 2518.8569,-1458.5496,23.9750+1, 40.0, -1);
    Rule2 = CreatePickup(1239, 23, 2521.4219,-1458.5574,23.9589, -1);
    Rule2_3D = Create3DTextLabel("No Flaming!", Red, 2521.4219,-1458.5574,23.9589+1, 40.0, -1);
    Rule3 = CreatePickup(1239, 23, 2524.2227,-1458.5502,23.9459, -1);
    Rule3_3D = Create3DTextLabel("Need help?", Red, 2524.2227,-1458.5502,23.9459+1, 40.0, -1);
    Rule4 = CreatePickup(1239, 23, 2527.3538,-1458.5424,23.9378, -1);
    Rule4_3D = Create3DTextLabel("Getting started!", Red, 2527.3538,-1458.5424,23.9378+1, 40.0, -1);

    Newb_Wep1 = CreatePickup(350, 15, 2515.5842,-1456.6869,23.9671, -1);
    Newb_Wep2 = CreatePickup(352, 15, 2511.6116,-1456.3907,23.9709, -1);
    return 1;
}
// OnGameModeExit
stock Delete3DTextLabels()
{
    Delete3DTextLabel(Rule1_3D);
    Delete3DTextLabel(Rule2_3D);
    Delete3DTextLabel(Rule3_3D);
    Delete3DTextLabel(Rule4_3D);
    Delete3DTextLabel(Prop3D);
    return;
}



Re: Troubles with Create3DTextLabel - dcmd_crash - 07.05.2010

How will that make any difference? It creates the pickups fine and everything else .. just not the 3DTexts


Re: Troubles with Create3DTextLabel - Virtual1ty - 07.05.2010

Try using '0', as the last parameter of Create3dTextLabel instead of '-1'.


Re: Troubles with Create3DTextLabel - CaHbKo - 07.05.2010

Are you sure that the 'new's of Rule_3Ds look like..
pawn Код:
new Text3D:Rule1_3D;
new Text3D:Rule2_3D;
new Text3D:Rule3_3D;
new Text3D:Rule4_3D;
?


Re: Troubles with Create3DTextLabel - dcmd_crash - 07.05.2010

Quote:
Originally Posted by CaHbKo
Are you sure that the 'new's of Rule_3Ds look like..
pawn Код:
new Text3D:Rule1_3D;
new Text3D:Rule2_3D;
new Text3D:Rule3_3D;
new Text3D:Rule4_3D;
?
Yup.

Quote:

Try using '0', as the last parameter of Create3dTextLabel instead of '-1'.

Lol that worked ... thanks. But how do I get them to show throughout all worlds?