[Help] error 017: undefined symbol "label"
#1

I created a command for my administrators to enter and exit the "duty" mode, I put a 3DTextLabel connected to the player, to appear "Admin" on top of his name, if he is in duty mode, but is giving error, does anyone know why?

My Command:
PHP код:
ACMD:admin[1](playeridparams[])
{
    if(
GetPlayerAdminLevel(playerid) < 2)
        return 
Msg(playeridRED"[ > ] Vocк nгo tem permissгo para usar este comando.");
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
    {
        
Msg(playeridRED"[ > ] Vocк nгo pode fazer isso enquanto estб espiando!");
        return 
1;
    }
    if(!
IsPlayerOnAdminDuty(playerid))
    {
        
TogglePlayerAdminDuty(playeridtrue);
        
MsgAdminsF(1NovoA"[ > ] O(a) Administrador(a){FFFFFF} %s {00c0ff}saiu do modo jogador!"name);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.2);
    }
    else
    {
        
TogglePlayerAdminDuty(playeridfalse);
        
MsgAdminsF(1NovoA"[ > ] O(a) Administrador(a){FFFFFF} %s {00c0ff}entrou no modo jogador!"name);
           
Delete3DTextLabel(label);
    }
    return 
1;

My 3D Label Definition, under of OnPlayerConnect
PHP код:
hook OnPlayerConnect(playerid)
{
    new 
Text3D:label Create3DTextLabel("Admin"0x33CCFFFF30.040.050.010.00);

Errors
Код:
SS/Core/Admin/Admin-1CMD.pwn(80) : error 017: undefined symbol "label"
SS/Core/Admin/Admin-1CMD.pwn(86) : error 017: undefined symbol "label"
Line of error 1:
PHP код:
Attach3DTextLabelToPlayer(labelplayerid0.00.00.2); 
Line of error 2:
PHP код:
Delete3DTextLabel(label); 
If Someone can help, i'll be very grateful.
Reply


Messages In This Thread
[Help] error 017: undefined symbol "label" - by ApolloScripter - 30.11.2018, 15:08
Re: [Help] error 017: undefined symbol "label" - by v1k1nG - 30.11.2018, 15:20
Re: [Help] error 017: undefined symbol "label" - by Revy - 30.11.2018, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)