help attaching3dlabel -
Rabea - 08.04.2015
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);
AW: help attaching3dlabel -
Mencent - 08.04.2015
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], playerid, 0, 0, 0.25);
I don't know wheather it works.
Mencent
Re: help attaching3dlabel -
Rabea - 08.04.2015
Ain't working
AW: help attaching3dlabel -
Mencent - 08.04.2015
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], playerid, 0, 0, 0.25);
print("attached");
Mencent
Re: help attaching3dlabel -
Rabea - 08.04.2015
Still...
AW: help attaching3dlabel -
Mencent - 08.04.2015
Yes, but what is printing in the console?
Mencent
Re: help attaching3dlabel -
Rabea - 08.04.2015
Yeh it shows, also i got warn for tag mismatch
Re: help attaching3dlabel -
R0 - 08.04.2015
do you have this in your script:
pawn Код:
new Text3D:aDutyText[MAX_PLAYERS];
Re: help attaching3dlabel -
Rabea - 09.04.2015
Yeh...
Re: help attaching3dlabel -
Rabea - 09.04.2015
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", 0xFF000000, 0, 0, -20, 25, playerid);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, hDutyText[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);