27.01.2013, 19:08
Is it possible to put that code into conditional expression?
I think yes.. but it's gonna be a really long conditional..
pawn Код:
if(newhealth < oldhealth)
{
UpdateDynamic3DTextLabelText(Text3D:PlayerData[playerid][E_PLAYER_NICK], COLOR_LIGHTRED, string);
}
else if(newhealth > oldhealth)
{
UpdateDynamic3DTextLabelText(Text3D:PlayerData[playerid][E_PLAYER_NICK], COLOR_GREEN, string);
}
else
{
UpdateDynamic3DTextLabelText(Text3D:PlayerData[playerid][E_PLAYER_NICK], COLOR_NICK, string);
}