[Ajuda] Dano Do Veiculo
#1

Qual o nome da funзao que mostra o dano do veiculo encima do carro ?!
Reply
#2

Nenhuma funзгo mostra dano do veiculo em cima do carro, vocк tera que criar um code.

https://sampwiki.blast.hk/wiki/GetVehicleHealth
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

Esta Callback Й propria pra isso, Voce tera que criar um script para aparecer o dano em 3dlabel ou textdraw ..
Reply
#4

Quote:
Originally Posted by DiiMeNoR
Посмотреть сообщение
vlw man
Reply
#5

Quote:
Originally Posted by shittt
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

Esta Callback Й propria pra isso, Voce tera que criar um script para aparecer o dano em 3dlabel ou textdraw ..
Isso й para reparar o veiculo nao и ?!
Reply
#6

Quote:
Originally Posted by shittt
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

Esta Callback Й propria pra isso, Voce tera que criar um script para aparecer o dano em 3dlabel ou textdraw ..
Usando o mesmo post olha , deu uns erros o porque nao sei

PHP код:
error 017undefined symbol "IsValidDynamic3DTextLabel"
error 001expected token";"but found "]"
error 029invalid expressionassumed zero
fatal error 107
too many error messages on one line 
pawn Код:
stock UpdateBar(playerid)
{
    new Float:HP, veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, HP);
    UpdateString(HP);

    if(IsValidDynamic3DTextLabel(CarLabel[playerid])) //LINHA DO ERRO
    {
        UpdateDynamic3DTextLabelText(CarLabel[playerid], -1, UpdateString(HP));
    }
    return 1;
}
Pode dizer o porque do erro ?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)