SA-MP Forums Archive
problem in channel radio. - 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: problem in channel radio. (/showthread.php?tid=652484)



problem in channel radio. - Vulk - 12.04.2018

(20522) : error 017: undefined symbol "id"


Код:
20522: if(user[i][jCanalRadio] == user[id][jCanalRadio]
Код:
stock _MensajeRfac(member, color, string[], division = -1, division2 = -1, division3 = -1)
{
	foreach(Player, i)
	{
	    if(member == 1)
	    {
			if(user[i][jMiembro] == member)
			{
			    if(user[i][jDivision] == division || user[i][jDivision] == division2 || user[i][jDivision] == division3)
				{
				    if(user[i][jCanalRadio] == user[id][jCanalRadio]
				    {
						SendSplitMessage(i, color, string);
					}
				}
			}
	    }
	    else
	    {
			if(user[i][jMiembro] == member)
			{
				SendSplitMessage(i, color, string);
			}
		}
	}
}



Re: problem in channel radio. - kovac - 12.04.2018

replace id with i


Re: problem in channel radio. - Mugala - 13.04.2018

I dont understand why u need this 'id' or this line if(user[i][jCanalRadio] == user[id][jCanalRadio])