SA-MP Forums Archive
[AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - 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] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! (/showthread.php?tid=339553)



[AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - Mr.Hardy - 04.05.2012

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;
}



Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - ViniBorn - 04.05.2012

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



Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - zSuYaNw - 04.05.2012

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;
}



Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - Mr.Hardy - 04.05.2012

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

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


Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - zSuYaNw - 04.05.2012

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


Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - ViniBorn - 04.05.2012

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);



Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - Mr.Hardy - 04.05.2012

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...


Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - zSuYaNw - 04.05.2012

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


Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - Mr.Hardy - 04.05.2012

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


Re: [AJUDA] CreatePlayer3DTextLabel no veiculo nгo aparece ;S ! - zSuYaNw - 04.05.2012

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;
}