[AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S !
#1

Nгo aparece esse 3DLabel Player no meu veiculo ;S!

pawn Код:
new VeiculoInfo[MAX_PLAYERS];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        VeiculoInfo[playerid] = CreatePlayer3DTextLabel(playerid,"Pres. Kennedy =(",-1,0,0,0.9,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
    }
    else
    {
        DeletePlayer3DTextLabel(playerid,VeiculoInfo[playerid]);
    }
    return  true;
}
Reply
#2

pawn Код:
new Text3D:VeiculoInfo[MAX_PLAYERS];
Reply
#3

Faltava a funзгo para "Aclopar" ao veнculo..
pawn Код:
new Text3D:VeiculoInfo[MAX_PLAYERS]; // Coloque Text3D para definir que й TextLabel

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        VeiculoInfo[playerid] = CreatePlayer3DTextLabel(playerid,"Pres. Kennedy =(",-1,0,0,0.9,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
        Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleId(playerid), 0.0, 0.0, 2.0);
    }
    else
    {
        DeletePlayer3DTextLabel(playerid,VeiculoInfo[playerid]);
    }
    return  true;
}
Reply
#4

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
pawn Код:
new Text3D:VeiculoInfo[MAX_PLAYERS];
- Eu jб tenho:

pawn Код:
new PlayerText3D:VeiculoInfo[MAX_PLAYERS];
- Ainda nгo funcionou ;( !
Reply
#5

Por favor, leia meu post acima, que seu erro serб resolvido..
Reply
#6

Tem um pequeno errinho aqui
pawn Код:
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleId(playerid), 0.0, 0.0, 2.0);
pawn Код:
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
Reply
#7

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Tem um pequeno errinho aqui
pawn Код:
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleId(playerid), 0.0, 0.0, 2.0);
pawn Код:
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
- Hm sу um segundo ai vou testar aqui...
Reply
#8

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Tem um pequeno errinho aqui
pawn Код:
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleId(playerid), 0.0, 0.0, 2.0);
pawn Код:
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
Ah sim, eu avia esquecido xD
Reply
#9

pawn Код:
Attach3DTextLabelToVehicle(VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 0.9);
Aviso: warning 213: tag mismatch..
Reply
#10

pawn Код:
new Text3D:VeiculoInfo[MAX_PLAYERS]; // Coloque Text3D para definir que й TextLabel

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        VeiculoInfo[playerid] = CreatePlayer3DTextLabel(playerid,"Pres. Kennedy =(",-1,0,0,0.9,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
        Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
    }
    else
    {
        DeletePlayer3DTextLabel(playerid,VeiculoInfo[playerid]);
    }
    return  true;
}


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)