04.11.2015, 01:34
PHP код:
public OnPlayerRequestSpawn(playerid)
{
new team1count = GetTeamCount(1);
new team2count = GetTeamCount(2);
switch(gTeam[playerid])
{
case 0:
{
if(team1count > team2count)
{
SendClientMessage(playerid, red,"You need to balance both team!");//this line
return 0;
}
}
case 1:
{
if(team2count > team1count)
{
SendClientMessage(playerid, red,"You need to balance both team!");//this line
return 0;
}
}
}
return 1;
}
PHP код:
error 035: argument type mismatch (argument 2)