Warnings help
#3

THANKS REPPED +++++
can u help me about this warnings ?
(9885) : warning 213: tag mismatch
Код:
     	if(dialogid == DIALOG_FIRMA2)
	    {
		    if(!response) return 1;
			if(PlayerInfo[playerid][pPosedovanjeFirme2] == 0) return SCM(playerid,BELA, "{F81414}GRESKA:{FFFFFF} Nemate Biznis!");
			new i = PlayerInfo[playerid][pPosedovanjeFirme2];
			switch(listitem)
			{
				case 0:
				{
				 	if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,BELA,"{F81414}GRESKA:{FFFFFF} Ne ste kaj vasta Firma!");
			 		GivePlayerMoney(playerid,FirmaInfo[i][fCena]/2);
					FirmaInfo[i][fProveraVlasnika] = 0; FirmaInfo[i][fKasa] = 0;
					strmid(FirmaInfo[i][bVlasnik], "Niko", 0, strlen("Niko"), 255); PlayerInfo[playerid][pPosedovanjeFirme2] = 0;
					SacuvajFirme(i); FirmaLP(i); OnPlayerUpdate(playerid);
					format(string,sizeof(string),"{6EF83C}INFO:{FFFFFF}Ja prodadovte Firmata za{FFFFFF}$%d {00C0FF}!",FirmaInfo[i][fCena]);
					SCM(playerid,BELA,string);
				}
				case 1:
				{
        				format(string,sizeof(string),"Kasa: %d ",FirmaInfo[i][fKasa]);
						SCM(playerid,BELA,string);
				}
				case 2:
				{
						SPD(playerid,ZArabotka_FIRMA,DIALOG_STYLE_INPUT, "Podigni Pari", "Vnesite Suma na pari \nkoja sakate da ja podignete od vasata firma", "Podigni", "Izlezi");
		
				}
			}
		}
warn here
Код:
strmid(FirmaInfo[i][bVlasnik], "Niko", 0, strlen("Niko"), 255); PlayerInfo[playerid][pPosedovanjeFirme2] = 0;
(13705) : warning 225: unreachable code
Код:
		if(PlayerInfo[playerid][pFMember] != 255)
		{
		    new family = PlayerInfo[playerid][pFMember];
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
		    SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
		    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
		    return 1;
		}
		else
		{
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 1730.3859,-1912.1241,13.5628); // Spawn kod CIVIL
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			return 0;
		}
	return 1;
}
warn on line
Код:
return 1;
Reply


Messages In This Thread
Warnings help - by HOB1x - 10.05.2014, 10:59
Re: Warnings help - by Matess - 10.05.2014, 11:30
Re: Warnings help - by HOB1x - 10.05.2014, 12:19
Re: Warnings help - by Parallex - 10.05.2014, 12:46
Re: Warnings help - by HOB1x - 10.05.2014, 12:51
Re: Warnings help - by Matess - 10.05.2014, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)