[AJUDA] Attach3DTextLabelToPlayer
#1

Galera eu crio o Attach3DTextLabelToPlayer numa boa
PHP код:
new Text3D:label = Create3DTextLabel("Help", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.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 028: invalid subscript (not an array or too many subscripts): "label"
C:\Users\Lucas\Desktop\SAMP - TBD\filterscripts\lstadmin.pwn(217) : warning 215: expression has no effect
C
:\Users\Lucas\Desktop\SAMP - TBD\filterscripts\lstadmin.pwn(217) : error 001: expected token: ";", but found "]"
C:\Users\Lucas\Desktop\SAMP - TBD\filterscripts\lstadmin.pwn(217) : error 029: invalid expression, assumed zero
C
:\Users\Lucas\Desktop\SAMP - TBD\filterscripts\lstadmin.pwn(217) : fatal error 107: too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB 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)