Help Script not working
#2

pawn Код:
stock GetRemainingMembers(teamid)
{
    new tCount;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
      if(GetPlayerTeam(i) == teamid && GetPVarInt(i, "Dead") == 0)
        {
            tCount = i;
            break;
      }
    }
    return tCount;
}
This should increase the tCount var, so:
pawn Код:
tCount++; // Replace this with 'tCount = i'
Also, I highly suggest that you don't run that player update every 2 seconds. That is extremely unefficient.
Reply


Messages In This Thread
Help Script not working - by bennyisme - 25.05.2010, 14:49
Re: Help Script not working - by Grim_ - 25.05.2010, 14:52
Re: Help Script not working - by bennyisme - 25.05.2010, 22:47
Re: Help Script not working - by bennyisme - 27.05.2010, 15:29
Re: Help Script not working - by bennyisme - 27.05.2010, 23:28

Forum Jump:


Users browsing this thread: 1 Guest(s)