13.01.2012, 09:34
Hey,
In the 8months that I have been scripting I have never worked out what I should return however I have this:
I think it should return 1 however as you can see I have return 1 for most things. Would this mean it should return 0??
Thanks,
-Snowman12.
In the 8months that I have been scripting I have never worked out what I should return however I have this:
pawn Код:
public RapedDamage(playerid)
{
new Float:H;
new Float:X, Float:Y, Float:Z;
if(PlayerIsInfected[playerid] == 1 && PlayerHasCured[playerid] == false) // HIV
{
SetPlayerHealth(playerid, GetPlayerHealth(playerid, H) - 5);
return 1;
}
if(PlayerIsInfected[playerid] == 2 && PlayerHasCured[playerid] == false)
{
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+8);
return 1;
}
if(PlayerHasCured[playerid] == true)
{
KillTimer(RapedTimer[playerid]);
return 1;
}
return 1;
}
Thanks,
-Snowman12.