Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kod izgleda mozda debilno zbog ovolikih varijabli ali to se sve da malo optimizovat bitno je da radi.
- Inc ovakav je kod jer sam radio iz 100 pokusaja na svakakve nacine i nije uspjelo
- PS: ovo mi se nalazi u 1 sec timeru
- Radilo je bogat 1 i bogat 2 ostalo nije :)
- new a,b,c,da,e,f;
- new g,h,ij;
- if((PI[i][pAccount]+PI[i][pCash]) > moneybogat) { bogat1 = GetName(i); moneybogat = (PI[i][pAccount]+PI[i][pCash]); } else { bogat1 = "Nema"; moneybogat = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < moneybogat) { bogat2 = GetName(i); a = (PI[i][pAccount]+PI[i][pCash]); } else { bogat2 = "Nema"; a = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < a) { bogat3 = GetName(i); b = (PI[i][pAccount]+PI[i][pCash]); } else { bogat3 = "Nema"; b = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < b) { bogat4 = GetName(i); c = (PI[i][pAccount]+PI[i][pCash]); } else { bogat4 = "Nema"; c = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < c) { bogat5 = GetName(i); da = (PI[i][pAccount]+PI[i][pCash]); } else { bogat5 = "Nema"; da = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < da) { bogat6 = GetName(i); e = (PI[i][pAccount]+PI[i][pCash]); } else { bogat6 = "Nema"; e = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < e) { bogat7 = GetName(i); f = (PI[i][pAccount]+PI[i][pCash]); } else { bogat7 = "Nema"; f = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < f) { bogat8 = GetName(i); g = (PI[i][pAccount]+PI[i][pCash]); } else { bogat8 = "Nema"; g = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < g) { bogat9 = GetName(i); h = (PI[i][pAccount]+PI[i][pCash]); } else { bogat9 = "Nema"; h = 0; }
- else if((PI[i][pAccount]+PI[i][pCash]) < h) { bogat10 = GetName(i); i = (PI[i][pAccount]+PI[i][pCash]); } else { bogat10 = "Nema"; ij = 0; }
- new d[1024];
- format(d, sizeof(d), "{F3FF02}[BOGATASI]\n1. %s - %d$\n2. %s - %d$\n3. %s - %d$\n4. %s - %d$\n5. %s - %d$\n6. %s - %d$\n7. %s - %d$\n8. %s - %d$\n9. %s - %d$\n10. %s - %d$", bogat1,moneybogat,bogat2,a,bogat3,b,bogat4,c,bogat5,da,bogat6,e,bogat7,f,bogat8,g,bogat9,h,bogat10,ij);
- UpdateDynamic3DTextLabelText(Bogatasi, -1, d);
Advertisement
Add Comment
Please, Sign In to add comment