28.09.2016, 16:04
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.
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]); } } } }