21.06.2011, 01:04
Okay i'm trying to make it so if a players health is 20 or lower, it slowly fades the screen in and out until it regenerates higher then 20.
I'm using seifader. this is what I tried to do;
if(pHealth <= 20)
{
FadeColorForPlayer(playerid,255,0,0,0,255,0,0,255, 25,1000);
return 1;
}
It give's me error's and I don't know how to make it slowly fade back into normal.
Errors: error 010: invalid function or declaration (phealth part)
error 021: symbol already defined: "FadeColorForPlayer" (FadeColorForPlayer part)
error 010: invalid function or declaration (return 1
I want it to be like call of duty regeneration (not perfect but something like it)
I'm using seifader. this is what I tried to do;
if(pHealth <= 20)
{
FadeColorForPlayer(playerid,255,0,0,0,255,0,0,255, 25,1000);
return 1;
}
It give's me error's and I don't know how to make it slowly fade back into normal.
Errors: error 010: invalid function or declaration (phealth part)
error 021: symbol already defined: "FadeColorForPlayer" (FadeColorForPlayer part)
error 010: invalid function or declaration (return 1
I want it to be like call of duty regeneration (not perfect but something like it)