[AJUDA] Attach3DTextLabelToPlayer
#1

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

Delete3DTextLabel(label[playerid]);

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

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
    

Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)