What's wrong?
#1

Код:
public OnPlayerDisconnect(playerid, reason)
{
	if(takim[playerid] == 1)
	{
	if(currClass[playerid] == 0)
	{
 	teamPlayers[0]--;
  }
  	else if(currClass[playerid] == 1)
  {
    teamPlayers[0]--;
  }
  else if(currClass[playerid] == 2)
  {
    teamPlayers[0]--;
  }
  else if(currClass[playerid] == 3)
  {
    teamPlayers[1]--;
  }
  else if(currClass[playerid] == 4)
  {
    teamPlayers[1]--;
  }
  else if(currClass[playerid] == 5)
  {
  teamPlayers[1]--;
  }
  }
  else if(takim[playerid] == 1)
  {
  //Do nothing
  }
  return 0;
}
I wanna if takim = 1 and currClass = 0,1,2 teamPlayers[0]-- and if takim = 1 and currClass,3,4,5 teamPlayers[0]--

But it doesn't work. Please help me

(OnPlayerSpawn has takim[playerid] ==1)
Reply


Messages In This Thread
What's wrong? - by xCoder - 09.09.2009, 08:55
Re: What's wrong? - by abhinavdabral - 09.09.2009, 09:20
Re: What's wrong? - by xCoder - 09.09.2009, 11:46
Re: What's wrong? - by Donny_k - 09.09.2009, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)