I need help with one thing.
#1

........... [Finished]
Reply
#2

Bump...
Reply
#3

Try this with foreach. You need this INC: Foreach
pawn Код:
public Foodstuff()
{
   foreach (Player, i)
   {
      if(PlayerInfo[i][pFood] > 0)
      {
         PlayerInfo[i][pFood] -= 1;
         return 1;
      }
      else
      {
        new Float:health;
        GetPlayerHealth(i,health)
        SetPlayerHealth(i, health-6);
        SendClientMessage(i, TEAM_CYAN_COLOR, "Sa paistad nдljane, miks mitte minna ja otsida midagi sььa?");
        return 1;
      }
   }
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)