[Help]4 errors on 1 line
#1

So i have made something with random teams, but idk why it dont work.

Код:
D:\samp\gamemodes\z.pwn(704) : error 028: invalid subscript (not an array or too many subscripts): "rand"
D:\samp\gamemodes\z.pwn(704) : warning 215: expression has no effect
D:\samp\gamemodes\z.pwn(704) : error 001: expected token: ";", but found "]"
D:\samp\gamemodes\z.pwn(704) : error 029: invalid expression, assumed zero
D:\samp\gamemodes\z.pwn(704) : fatal error 107: too many error messages on one line
Код:
new RandomTeams[][] =
{
    {TEAM_ZOMBIE},
    {TEAM_HUMAN}
};

new rand = random(sizeof(RandomTeams));
	

SetPlayerTeam(playerid, rand[rand][0]); // 704 line
Reply


Messages In This Thread
[Help]4 errors on 1 line - by luis_mendoza - 04.05.2013, 06:56
Re: [Help]4 errors on 1 line - by Yashas - 04.05.2013, 06:57
Re: [Help]4 errors on 1 line - by luis_mendoza - 04.05.2013, 06:59
Re: [Help]4 errors on 1 line - by Yashas - 04.05.2013, 07:00
Re: [Help]4 errors on 1 line - by luis_mendoza - 04.05.2013, 07:09
Re: [Help]4 errors on 1 line - by Yashas - 04.05.2013, 07:14
Re: [Help]4 errors on 1 line - by luis_mendoza - 04.05.2013, 07:28
Re: [Help]4 errors on 1 line - by Yashas - 04.05.2013, 07:33
Re: [Help]4 errors on 1 line - by luis_mendoza - 04.05.2013, 07:36
Re: [Help]4 errors on 1 line - by Yashas - 04.05.2013, 07:37

Forum Jump:


Users browsing this thread: 1 Guest(s)