help attaching3dlabel
#1

Thats when I go /aduty. The problem it ain't showing/attaching anything.
What's the problem?
pawn Код:
if(IsValidDynamic3DTextLabel(aDutyText[playerid]))  DestroyDynamic3DTextLabel(aDutyText[playerid]);
    aDutyText[playerid] = CreateDynamic3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
    Attach3DTextLabelToPlayer(aDutyText[playerid], playerid, 0, 0, 0.25);
    Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, aDutyText[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
    Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, aDutyText[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
Reply
#2

Hello!

Write it so:
PHP код:
if(IsValidDynamic3DTextLabel(aDutyText[playerid]))  DestroyDynamic3DTextLabel(aDutyText[playerid]);
    
aDutyText[playerid] = CreateDynamic3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
    
Attach3DTextLabelToPlayer(aDutyText[playerid], playerid000.25); 
I don't know wheather it works.

Mencent
Reply
#3

Ain't working
Reply
#4

Well, what is printing?
PHP код:
if(IsValidDynamic3DTextLabel(aDutyText[playerid]))  DestroyDynamic3DTextLabel(aDutyText[playerid]);
aDutyText[playerid] = CreateDynamic3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
printf("aDutyText: %i",aDutyText[playerid]);
Attach3DTextLabelToPlayer(aDutyText[playerid], playerid000.25);
print(
"attached"); 
Mencent
Reply
#5

Still...
Reply
#6

Yes, but what is printing in the console?

Mencent
Reply
#7

Yeh it shows, also i got warn for tag mismatch
Reply
#8

do you have this in your script:
pawn Код:
new Text3D:aDutyText[MAX_PLAYERS];
Reply
#9

Yeh...
Reply
#10

i'm using this now, but it not showing any text...
PHP код:
    if(IsValidDynamic3DTextLabel(aDutyText[playerid]))  DestroyDynamic3DTextLabel(aDutyText[playerid]);
      
aDutyText[playerid] = CreateDynamic3DTextLabel("ADMIN ON DUTY/n DO NOT ATTACK"0xFF00000000, -2025playerid);
    
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABELhDutyText[playerid] , E_STREAMER_ATTACH_OFFSET_Z0.25); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)