11.04.2018, 14:47
Hello, i am wondering how to make random team for players.
Error
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!
Код:
#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); }
Код:
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
+rep, Thanks in Advance!