Random Team For player
#1

Hello, i am wondering how to make random team for players.

Код:
#define Ranger 1
#define Mafia 2

     foreach(Player, ii)
    {
	if(GetPlayerTeam(ii) == 1) ++Ranger;
	else if(GetPlayerTeam(ii) == 2) ++Mafia;
	SetPlayerTeam(ii, (Ranger > Mafia)+1);
   }
Error
Код:
test.pwn(551) : error 022: must be lvalue (non-constant)
test.pwn(552) : error 022: must be lvalue (non-constant)
test.pwn(553) : warning 213: tag mismatch
test.pwn(597) : error 022: must be lvalue (non-constant)
test.pwn(598) : error 022: must be lvalue (non-constant)
test.pwn(599) : warning 213: tag mismatch
i don't really know how to make random team for players.. This is a Tdm script and i want players to spawn in random 2 teams. Can anyone help me in making random teams?

+rep, Thanks in Advance!
Reply


Messages In This Thread
Random Team For player - by UFF - 11.04.2018, 14:47
Re: Random Team For player - by RANGER44 - 11.04.2018, 15:36
Re: Random Team For player - by Wanheda - 11.04.2018, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)