SA-MP Forums Archive
[Help]Eror duplicate "case" label - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Eror duplicate "case" label (/showthread.php?tid=367754)



[Help]Eror duplicate "case" label - Nedda - 11.08.2012

Hello Please help me ! I have a one error in my mode ! duplicate "case" label (value 10)

Code:
 case THREAD_LSDCLANOVI:
	    {
	        new linija[315], id;
			mysql_store_result();
			if(mysql_num_rows() > 0)
			{
				if(mysql_fetch_row(linija))
				{
					sscanf(linija, "p<|>is[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]s[24]",
					id, LSDInfo[1][Lider], LSDInfo[2][Lider], LSDInfo[1][Mesto], LSDInfo[2][Mesto], LSDInfo[3][Mesto], LSDInfo[4][Mesto], LSDInfo[5][Mesto], LSDInfo[6][Mesto],
					LSDInfo[7][Mesto], LSDInfo[8][Mesto], LSDInfo[9][Mesto], LSDInfo[10][Mesto], LSDInfo[11][Mesto], LSDInfo[12][Mesto], LSDInfo[13][Mesto], LSDInfo[14][Mesto],
					LSDInfo[15][Mesto]);
				}
				mysql_free_result();
			}
	    }
Where is misstakes ?


Re: [Help]Eror duplicate "case" label - Ranama - 11.08.2012

you have 2 cases with the same value, search for
pawn Code:
case THREAD_LSDCLANOVI:
or this
pawn Code:
case 10:
and see if you find more then 1, then delete the others so you just got one and problem solved


Re: [Help]Eror duplicate "case" label - Nedda - 11.08.2012

Thanks bro !! I have solved this problem