SA-MP Forums Archive
Pull number - 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: Pull number (/showthread.php?tid=617927)



Pull number - sampkinq - 28.09.2016

Hi, I want to take my 3rd one there's the number. But the numbers are always the same when shooting comes in. How I can fix it. You help me ?
I'm sorry for my bad English.

Код:
function:evlerimiYukle(playerid)
{
	printf("");
	new test[3];
	foreach(new a: Evler)
	{
		if(strcmp(EvIslem[a][EvSahibi], getName(playerid), false) == 0)
		{
	    	test[0] = a;
			_evVer[playerid][evSlot][0] = a;
			_evVer[playerid][sehirKontrolu][0] = EvIslem[a][SehirKontrol];
			printf("#1 - ID: %d, Isim: %s\n", a, EvIslem[a][EvSahibi]);
		}
	}
	
 	foreach(new b: Evler)
	{
		if(strcmp(EvIslem[b][EvSahibi], getName(playerid), false) == 0)
		{
	    	if(test[0] != b)
	    	{
	    	    test[1] = b;
				_evVer[playerid][evSlot][1] = b;
				_evVer[playerid][sehirKontrolu][1] = EvIslem[b][SehirKontrol];
				printf("#2 - ID: %d, Isim: %s\n", b, EvIslem[b][EvSahibi]);
			}
		}
	}
	
  	foreach(new c: Evler)
	{
		if(strcmp(EvIslem[c][EvSahibi], getName(playerid), false) == 0)
		{
	    	if(test[1] != c)
	    	{
	    	    test[2] = c;
				_evVer[playerid][evSlot][2] = c;
				_evVer[playerid][sehirKontrolu][2] = EvIslem[c][SehirKontrol];
				printf("#3 - ID: %d, Isim: %s\n", c, EvIslem[c][EvSahibi]);
			}
		}
	}
}



Re: Pull number - Gotham - 28.09.2016

I'm sorry , I don't get what you mean


Re: Pull number - sampkinq - 28.09.2016

Quote:
Originally Posted by Gotham
Посмотреть сообщение
I'm sorry , I don't get what you mean
I want to take 3 different numbers. It's all the same but the numbers.


Re: Pull number - Vince - 28.09.2016

If you're going to request help here you should write your code in English. I have no idea what I'm looking at or what this is even supposed to do.