~fixed~
#1

~fixed~
Reply
#2

Код:
forward Regeneration();
public Regeneration()
{
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
      if(team[playerid] == TEAM_ZOMBIE)
      {
       new Float:PHealth;
        GetPlayerHealth(playerid, PHealth);
     if(PHealth < 100)
      {
        SetPlayerHealth(playerid, GetPlayerHealth(playerid, PHealth)+2);
      }
   }
}
   return 1;
}
u have used that float before , change it , use it like i've show you
Reply
#3

its saying you have a variable already defined as "Health"
name "Health" something different like "regen_health"
Reply
#4

Would be nice if you could tell everyone what the problem was, someone might need help in the future.
Reply
#5

SDLMMM and DeStunter explained what the problem was.
Reply
#6

Health Variable Have been defined before , you can't re-define it , change Health with something else
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)