Hey Leute,
suche grad in allen scripts nach dem leben anzugs timer wenn man nicht isst also weil es wäre ja umständlich es so zu machen:
if(GetPlayerHealth(playerid, health) == 100 || GetPlayerHealth(playerid,health) == 99|| GetPlayerHealth(playerid,health) == 98|| GetPlayerHealth(playerid,health) == 97|| GetPlayerHealth(playerid,health) == 96)
{
SetPlayerHealth(playerid,95);
return 1;
}
if(GetPlayerHealth(playerid, health) == 95 || GetPlayerHealth(playerid,health) == 94|| GetPlayerHealth(playerid,health) == 93|| GetPlayerHealth(playerid,health) == 92|| GetPlayerHealth(playerid,health) == 91)
{
SetPlayerHealth(playerid,90);
return 1;
}
usw also so mit float klappt es nicht
habe es so:
new Float:health;
SetPlayerHealth(playerid, health - 5);
geht nicht!
Kann mir einer helfen?