error 047: array sizes do not match, or destination array is too small
#3

Код:
CMD:d(playerid, params[])
{
	new string[128];
	if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/d)epartments [department chat]");

	new employer[16], rank[64], division[16];
	switch (PlayerInfo[playerid][pMember]) // Employer, Rank and Division data is pulled from here.
	{
	case 1:
		{
			employer = "LSPD";
			switch(PlayerInfo[playerid][pRank])
			{
			    case 1: rank = "Officer";
			    case 2: rank = "Senior Officer";
			    case 3: rank = "Corporal";
			    case 4: rank = "Sergeant";
			    case 5: rank = "Staff Sergeant";
				case 6: rank = "Lieutenant";
				case 7: rank = "Captain";
				case 8: rank = "Deputy Chief";
				case 9: rank = "Chief";
			    default: rank = "Cadet";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
               case 1: division = "(P.O.) ";
		       case 2: division = "(F.T.O.) ";
		       case 3: division = "(I.A.) ";
		       case 4: division = "(S.W.A.T.) ";
		       case 5: division = "(CMD) ";
		       default: division = "(P.O.) ";
			}
		}
	case 2:
		{
			employer = "FBI";
			switch(PlayerInfo[playerid][pRank])
			{
			    case 1: rank = "Intern";
			    case 2: rank = "Agent";
			    case 3: rank = "Senior Agent";
			    case 4: rank = "Special Agent";
			    case 5: rank = "Supervisor";
			    case 6: rank = "Senior Supervisor";
			    case 7: rank = "Assistant Director";
			    case 8: rank = "Vice Director";
			    case 9: rank = "Director";
			    default: rank = "Probationary Intern";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
	    		case 1: division = "(G.D.)";
			    case 2: division = "(C.I.D.) ";
			    case 3: division = "(F.O.) ";
			    case 4: division = "(O.C.U.) ";
			    case 5: division = "(I.A.) ";
				case 6: division = "(CMD) ";
			    default: division = "(G.D.) ";
			}
		}
		case 3:
		{
			employer = "SFPD";
			switch(PlayerInfo[playerid][pRank])
			{
				case 1: rank = "Officer";
			    case 2: rank = "Senior Officer";
			    case 3: rank = "Corporal";
			    case 4: rank = "Sergeant";
			    case 5: rank = "Staff Sergeant";
				case 6: rank = "Lieutenant";
				case 7: rank = "Captain";
				case 8: rank = "Deputy Chief";
				case 9: rank = "Chief";
			    default: rank = "Cadet";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
				case 1: division = "(P.O.) ";
			    case 2: division = "(E.P.) ";
			    case 3: division = "(I.A.) ";
			    case 4: division = "(S.W.A.T.) ";
			    case 5: division = "(CMD) ";
			    default: division = "(P.O.) ";
			}
		}
	case 4:
		{
			employer = "FDSA";
			switch(PlayerInfo[playerid][pRank])
			{
				case 1: rank = "Firefighter";
				case 2: rank = "Senior Firefighter";
				case 3: rank = "Fire Sergeant";
				case 4: rank = "Lieutenant";
				case 5: rank = "Captain";
				case 6: rank = "Battalion Chief";
				case 7: rank = "Assistant Chief";
				case 8: rank = "Deputy Fire Chief";
				case 9: rank = "Fire Chief";
				default: rank = "Recruit";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
			    case 1: division = "(G.D.) ";
			    case 2: division = "(H.R.) ";
			    case 3: division = "(E.M.S.) ";
			    case 4: division = "(F.D.) ";
			    case 5: division = "(I.A.) ";
			    case 6: division = "(CMD) ";
			    default: division = "(G.D.) ";
			}
		}
	case 5:
		{
			employer = "Judicial Branch";
			switch(PlayerInfo[playerid][pRank])
			{
	    		case 1: rank = "Clerk of Court";
	    		case 2: rank = "District Attorney";
	    		case 3: rank = "District Judge";
	    		case 4: rank = "Appellate Judge";
	    		case 5: rank = "Associate Justice of the Supreme Court";
			    case 6: rank = "Chief Justice of the Supreme Court";
		    	default: rank = "Clerk of Court";
			}
		}
	case 6:
		{
			employer = "State";
			switch(PlayerInfo[playerid][pRank])
			{
				case 1: rank = "Staff Member";
				case 2: rank = "G.E.T. Officer";
				case 3: rank = "Legislator";
				case 4: rank = "Government Cabinet";
				case 5: rank = "Vice President";
				case 6: rank = "President";
				default: rank = "Intern";
			}
		}
	case 7:
		{
			employer = "SASD";
			switch(PlayerInfo[playerid][pRank])
			{
                case 1: rank = "Deputy";
				case 2: rank = "Senior Deputy";
				case 3: rank = "Sergeant";
				case 4: rank = "Lieutenant";
				case 5: rank = "Captain";
				case 6: rank = "Sheriff";
				default: rank = "Trainee";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
                case 1: division = "(G.D.) ";
                case 2: division = "(F.T.O.) ";
    		    case 3: division = "(I.A.) ";
         	    case 4: division = "(CMD) ";
		        case 5: division = "(S.W.A.T.) ";
	    	    default: division = "(G.D.) ";
			}
		}
		case 11:
		{
			employer = "San Andreas National Guard";
			switch(PlayerInfo[playerid][pRank])
			{
				case 0: rank= "Private";
				case 1: rank = "Corporal";
				case 2: rank = "Sergeant";
				case 3: rank = "Lieutenant";
				case 4: rank = "Captain";
				case 5: rank = "Major";
				case 6: rank = "General";
				default: rank = "Private";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
				case 1: division = "(G.D.) ";
			    case 2: division = "(ARM) ";
			    case 3: division = "(AIR) ";
			    case 4: division = "(CMD) ";
			    case 5: division = "(F.T.O.) ";
			    default: division = "(G.D.) ";
			}
		}
		case 13:
		{
            employer = "Task Force";
			switch(PlayerInfo[playerid][pRank])
			{
			    case 0: rank = "Ensign";
				case 1: rank = "Marksman";
				case 2: rank = "Elite Marksman";
				case 3: rank = "Operative";
				case 4: rank = "Elite Operative";
				case 5: rank = "Vice Commander";
				case 6: rank = "Supreme Commander";
				default: rank = "Ensign";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
				case 1: division = "(G.D.) ";
				case 2: division = "(AIR) ";
				case 3: division = "(ARM) ";
				case 4: division = "(I.A.) ";
				case 5: division = "(CMD) ";
			    default: division = "(G.D.) ";
			}
		}
This is the one
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)