No Error But in the Game
#9

Quote:
Originally Posted by mincer1667
Посмотреть сообщение
that should work for random:

Код:
public RandZombie()
{
    new Players2[MAX_PLAYERS], k;
    new count = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && gTeam[i] == TEAM_HUMANS) Players2[k++] = i;
        {
            count++;
        }
        if (count == 0) return 1;
        else
	{
	201 >>> new RandomPlayer = Players[random(k)];
		gTeam[RandomPlayer] = TEAM_ZOMBIES;
		SendClientMessage(RandomPlayer, -1, "Random Zombie");
	}
    }
    return 1;
}
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(201) : error 028: invalid subscript (not an array or too many subscripts): "Players"
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(201) : error 001: expected token: ";", but found "]"
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(201) : error 029: invalid expression, assumed zero
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(201) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
No Error But in the Game - by [D]ry[D]esert - 24.04.2012, 20:18
Re: No Error But in the Game - by BleverCastard - 24.04.2012, 20:54
Re: No Error But in the Game - by Face9000 - 24.04.2012, 23:16
Re: No Error But in the Game - by [D]ry[D]esert - 25.04.2012, 03:11
Re: No Error But in the Game - by Azazelo - 25.04.2012, 04:33
Re: No Error But in the Game - by $$inSane - 25.04.2012, 09:00
Re: No Error But in the Game - by MP2 - 25.04.2012, 09:10
Re: No Error But in the Game - by mincer1667 - 25.04.2012, 10:41
Re: No Error But in the Game - by [D]ry[D]esert - 25.04.2012, 10:58
Re: No Error But in the Game - by mincer1667 - 25.04.2012, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)