Problem!
#1

I spent ages trying to work out whats wrong with this. Can someone help me?

Код:
	if(strcmp(cmdtext,"/offduty", true) == 0)
	{
	  if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
	  {
  	 		if(OnDuty[playerid]==1)
  	 		{
	    ShowMenuForPlayer(copcivil, playerid);
	    TogglePlayerControllable(playerid, 0);
		}
		else
		{
		SendClientMessage(playerid, COLOR_GRAD1,"Your not off duty");
	}
	else
	{
 	SendClientMessage(playerid, COLOR_GRAD1,"You are not a member of LSPD!");
	}
}
Reply
#2

You were missing a }
pawn Код:
if(strcmp(cmdtext,"/offduty", true) == 0)
{
  if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
  {
    if(OnDuty[playerid]==1)
    {
      ShowMenuForPlayer(copcivil, playerid);
     TogglePlayerControllable(playerid, 0);
    }
    else
    {
      SendClientMessage(playerid, COLOR_GRAD1,"Your not off duty");
    }
  }
  else
  {
    SendClientMessage(playerid, COLOR_GRAD1,"You are not a member of LSPD!");
  }
}
Reply
#3

Ok, thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)