Troubles with Create3DTextLabel
#1

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

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

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

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;
?
Reply
#5

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)