3D text label problem?
#1

pawn Code:
BarInfo[barid][bartext] = Create3DTextLabel(str,Niceyellow,X,Y,Z,100.0,-1,1);
Well when i create a bar i just see ID: 1 beside me after half than a second (0.5 second) the 3DLabel disappears
Reply
#2

Re-Read this tutorial and see if it solves your problem.
Reply
#3

I did and that didn't fix it
Reply
#4

I'm not experienced with TextDraws(3D Text). I wish I could help, but right now it seems that in my way..it looks kinda complicated as I'm not experienced with 3D Text.
Reply
#5

bump
Reply
#6

Can you show a bit more of your code? Do you attach it somewhere? Use it in a timer? Or anything like that?
Reply
#7

pawn Code:
CMD:createbar(playerid,params[])
{
    if(PlayerData[playerid][AdminLevel] < 4) return 0;
    if(sscanf(params,"i",barid)) return SendClientMessage(playerid,grey,"USAGE: /createbar [Bar ID]");
    if(barid > MAX_BARS) return SendClientMessage(playerid,red,"Available BARS 1-9");
    CheckMySQL();
    format(str,sizeof(str),"SELECT * FROM Bars WHERE ID = '%d'",barid);
    mysql_query(str);
    mysql_store_result();
    if(mysql_num_rows() == 0)
    {
        mysql_free_result();
        GetPlayerPos(playerid,X,Y,Z);
        format(str,sizeof(str),"INSERT INTO Bars (ID,PosX,PosY,PosZ) VALUES ('%d','%f','%f','%f')",barid,X,Y,Z);
        mysql_query(str);
        format(str,sizeof(str),"You have created Bar ID: %d!",barid);
        SendClientMessage(playerid,orange,str);
        BarInfo[barid][barcheck] = CreateDynamicCP(X,Y,Z,1,-1,-1,-1,50);
        format(str,sizeof(str),"ID: {FFFFFF}%d",barid);
        BarInfo[barid][bartext] = Create3DTextLabel(str,Niceyellow,X,Y,Z,100.0,-1,1);
    }
    else
    {
        SendClientMessage(playerid,red,"ERROR: This Bar ID is already used.");
    }
    return 1;
}
Reply
#8

BUMP
Reply
#9

bump
Reply
#10

oops.. Delete this. I thougt it was CreateDynamic3DTextLabel
Reply
#11

If it's dissapearing, Destroy3DTextLabel is being used somewhere, use CTRL+F to find it, in your gamemode and any filterscripts/includes you're using. There might be an ID mixup.

Also, try changing the TestLOS parameter from 1 to 0, see if that changes anything.
Reply
#12

i tryed testlos on 0 and 1 but it wont work, i just only see for half a second and it disappears and i have destroy3DTextLabel for ongamemodeexit but that is not the problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)