ID('s) problem
#8

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:CurrentMenu = GetPlayerMenu(playerid);

	if(CurrentMenu == LVPD)
	{
	   switch(row)
	   {
       case 0:
	   {
		  for(new i=0; i < MAX_PLAYERS; i++)
		  {
	        gTeam[i] = TEAM_LVPD;
		      SendClientMessage(playerid,COLOR_BLUE,"You have been set as a police officer");
		      SetPlayerSkin(playerid,280);
		      TogglePlayerControllable(playerid,true);
		      return 1;
  			}
		 }
		 case 1:
         {
				if(gTeam[playerid] == TEAM_CIVIL)
				{
				SendClientMessage(playerid,COLOR_RED2,"You are not a police officer!");
				ShowMenuForPlayer(LVPD,playerid);
				return 1;
				}
				else
				{
					for(new i=0; i < MAX_PLAYERS; i++)
					{
						gTeam[i] = TEAM_CIVIL;
		                SendClientMessage(playerid,COLOR_BLUE,"You have resigned as police officer");
						SetPlayerSkin(playerid,VorigeSkin);
		                TogglePlayerControllable(playerid,true);
						return 1;
					}
				}
           }
     }
  }
  return 1;
}
Have this code atm... djeez i'm getting dizzy of all those different things i'm trying ...
The Problem remains the same : When one player request, everyone turns into lvpd, and idem with resign. I tried withouth the for loop and with [playerid] but nothing seems to do the job? :O any peeps had experience with this?

Greets Rizzy

EDIT: Is this double post? srry for that
Reply


Messages In This Thread
ID('s) problem - by Rizard - 23.05.2009, 10:26
Re: Can't get single Team activation - ID('s) problem - by Weirdosport - 23.05.2009, 10:28
Re: Can't get single Team activation - ID('s) problem - by miokie - 23.05.2009, 10:30
Re: Can't get single Team activation - ID('s) problem - by Rizard - 23.05.2009, 12:15
Re: Can't get single Team activation - ID('s) problem - by Cabby - 23.05.2009, 14:11
Re: Can't get single Team activation - ID('s) problem - by miokie - 23.05.2009, 16:13
Re: Can't get single Team activation - ID('s) problem - by Rizard - 23.05.2009, 16:22
Re: Can't get single Team activation - ID('s) problem - by Rizard - 24.05.2009, 10:24
Re: Can't get single Team activation - ID('s) problem - by Rizard - 03.06.2009, 12:09
Re: ID('s) problem - by Rizard - 14.06.2009, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)