SA-MP Forums Archive
[AJUDA] Attach3DTextLabelToPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Attach3DTextLabelToPlayer (/showthread.php?tid=310849)



[AJUDA] Attach3DTextLabelToPlayer - L.S.T - 14.01.2012

Galera eu crio o Attach3DTextLabelToPlayer numa boa
PHP код:
new Text3D:label Create3DTextLabel("Help"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7); 
Mas quando o Jogador Sai Como eu fasco para apagar esse Attach3DTextLabelToPlayer?
Olhei no Wiki SA-MP mas nгo consegio apagar nгo algem min ajuda?


Re: [AJUDA] Attach3DTextLabelToPlayer - armandodo - 14.01.2012

Delete3DTextLabel(label[playerid]);

__________________________________________________ ____________
ALGUEM ME AJUDA AI!! PQ MEU FS TA TRAVANDO O MEU VPS


Re: [AJUDA] Attach3DTextLabelToPlayer - L.S.T - 14.01.2012

Deu erro:
PHP код:
C:\Users\Lucas\Desktop\SAMP TBD\filterscripts\lstadmin.pwn(217) : error 028invalid subscript (not an array or too many subscripts): "label"
C:\Users\Lucas\Desktop\SAMP TBD\filterscripts\lstadmin.pwn(217) : warning 215expression has no effect
C
:\Users\Lucas\Desktop\SAMP TBD\filterscripts\lstadmin.pwn(217) : error 001expected token";"but found "]"
C:\Users\Lucas\Desktop\SAMP TBD\filterscripts\lstadmin.pwn(217) : error 029invalid expressionassumed zero
C
:\Users\Lucas\Desktop\SAMP TBD\filterscripts\lstadmin.pwn(217) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Linha:
PHP код:

    
if(PlayerInfo[playerid][pVIP] == 1)
    {
        new 
Text3D:label;
        
Delete3DTextLabel(label[playerid]);//essa й a linha 217
    




Re: [AJUDA] Attach3DTextLabelToPlayer - armandodo - 14.01.2012

esse if(PlayerInfo[playerid][pVIP] == 1) ta no login... onplayerspawn ... onplayerdisconnect


Re: [AJUDA] Attach3DTextLabelToPlayer - victor_h666 - 14.01.2012

Se quiser apagar quando o player sair sу coloca o Delete3DTextLabel; no OnPlayerDisconnect.