Guest User

Untitled

a guest
May 27th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. Kod izgleda mozda debilno zbog ovolikih varijabli ali to se sve da malo optimizovat bitno je da radi.
  2. Inc ovakav je kod jer sam radio iz 100 pokusaja na svakakve nacine i nije uspjelo
  3.  
  4. PS: ovo mi se nalazi u 1 sec timeru
  5.  
  6. Radilo je bogat 1 i bogat 2 ostalo nije :)
  7.  
  8.  
  9.  
  10.  
  11. new a,b,c,da,e,f;
  12. new g,h,ij;
  13. if((PI[i][pAccount]+PI[i][pCash]) > moneybogat) { bogat1 = GetName(i); moneybogat = (PI[i][pAccount]+PI[i][pCash]); } else { bogat1 = "Nema"; moneybogat = 0; }
  14. else if((PI[i][pAccount]+PI[i][pCash]) < moneybogat) { bogat2 = GetName(i); a = (PI[i][pAccount]+PI[i][pCash]); } else { bogat2 = "Nema"; a = 0; }
  15. else if((PI[i][pAccount]+PI[i][pCash]) < a) { bogat3 = GetName(i); b = (PI[i][pAccount]+PI[i][pCash]); } else { bogat3 = "Nema"; b = 0; }
  16. else if((PI[i][pAccount]+PI[i][pCash]) < b) { bogat4 = GetName(i); c = (PI[i][pAccount]+PI[i][pCash]); } else { bogat4 = "Nema"; c = 0; }
  17. else if((PI[i][pAccount]+PI[i][pCash]) < c) { bogat5 = GetName(i); da = (PI[i][pAccount]+PI[i][pCash]); } else { bogat5 = "Nema"; da = 0; }
  18. else if((PI[i][pAccount]+PI[i][pCash]) < da) { bogat6 = GetName(i); e = (PI[i][pAccount]+PI[i][pCash]); } else { bogat6 = "Nema"; e = 0; }
  19. else if((PI[i][pAccount]+PI[i][pCash]) < e) { bogat7 = GetName(i); f = (PI[i][pAccount]+PI[i][pCash]); } else { bogat7 = "Nema"; f = 0; }
  20. else if((PI[i][pAccount]+PI[i][pCash]) < f) { bogat8 = GetName(i); g = (PI[i][pAccount]+PI[i][pCash]); } else { bogat8 = "Nema"; g = 0; }
  21. else if((PI[i][pAccount]+PI[i][pCash]) < g) { bogat9 = GetName(i); h = (PI[i][pAccount]+PI[i][pCash]); } else { bogat9 = "Nema"; h = 0; }
  22. else if((PI[i][pAccount]+PI[i][pCash]) < h) { bogat10 = GetName(i); i = (PI[i][pAccount]+PI[i][pCash]); } else { bogat10 = "Nema"; ij = 0; }
  23. new d[1024];
  24. 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);
  25. UpdateDynamic3DTextLabelText(Bogatasi, -1, d);
Advertisement
Add Comment
Please, Sign In to add comment