Textdraw does not update
#7

I suggest you to do a debug:

pawn Код:
forward Damage(playerid);
public Damage(playerid)
{
    new Float:health;
    new veh;
    veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
    printf("--- DEBUG: Vehicle Health on \"public Damage\": %f", health);
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(health > 800)
    {
        TextDrawColor(Textdraw13[playerid], 0xFFFFFFFF);
    }
    else if(health <= 800 && health > 500)
    {
        TextDrawColor(Textdraw13[playerid], 0xFFFF00FF);
    }
    else if(health <= 400)
    {
       TextDrawColor(Textdraw13[playerid], 0xFF0000FF);
    }
    }
    else {
    TextDrawColor(Textdraw13[playerid], 0xD3D3D3FF);
    }
return 1;
}
Check your log for values. If they are wrong, you must recheck your code for mistakes
Reply


Messages In This Thread
Textdraw does not update - by Neil. - 04.02.2013, 05:48
Re: Textdraw does not update - by JaKe Elite - 04.02.2013, 06:53
Re: Textdraw does not update - by Neil. - 04.02.2013, 07:08
Re: Textdraw does not update - by Neil. - 04.02.2013, 08:17
Re: Textdraw does not update - by Vince - 04.02.2013, 08:18
Re: Textdraw does not update - by Neil. - 04.02.2013, 08:23
Re: Textdraw does not update - by denNorske - 04.02.2013, 08:33
Re: Textdraw does not update - by Threshold - 04.02.2013, 08:46
Re: Textdraw does not update - by Neil. - 04.02.2013, 10:03
Re: Textdraw does not update - by Neil. - 04.02.2013, 10:21

Forum Jump:


Users browsing this thread: 5 Guest(s)