hlmod.hu
https://hlmod.hu/

String Bővítés
https://hlmod.hu/viewtopic.php?f=9&t=26223
Oldal: 1 / 1

Szerző:  exodus [2016.09.17. 16:29 ]
Hozzászólás témája:  String Bővítés

Sziasztok.

Az a problémám lenne, hogy a menüben kicsit sok a string és a menü rosszul jelenik meg.


Képek:
Kép

Kép

Ilyenkor mi is lenne a teendő? (Stringek karaterszámának növelését próbáltam már)

  1. public LadaNyitas(id)
  2. {
  3. new String[121];
  4. format(String, charsmax(String), "[%s] \r- \dLádaNyitás^n\wKulcs: \d(%d) \yDrop esély: \r(%3.2f%%)", PREFIX, Kulcs[id], DropItem[9][Mod]);
  5. new menu = menu_create(String, "Lada_h");
  6.  
  7. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[0][0], Lada[0][id], DropItem[8][Mod]);
  8. menu_additem(menu, String, "0", 0);
  9. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[1][0], Lada[1][id], DropItem[7][Mod]);
  10. menu_additem(menu, String, "1", 0);
  11. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[2][0], Lada[2][id], DropItem[6][Mod]);
  12. menu_additem(menu, String, "2", 0);
  13. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[3][0], Lada[3][id], DropItem[5][Mod]);
  14. menu_additem(menu, String, "3", 0);
  15. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[4][0], Lada[4][id], DropItem[4][Mod]);
  16. menu_additem(menu, String, "4", 0);
  17. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[5][0], Lada[5][id], DropItem[3][Mod]);
  18. menu_additem(menu, String, "5", 0);
  19. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[6][0], Lada[6][id], DropItem[2][Mod]);
  20. menu_additem(menu, String, "6", 0);
  21. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[7][0], Lada[7][id], DropItem[1][Mod]);
  22. menu_additem(menu, String, "7", 0);
  23. format(String, charsmax(String), "\w%s \d(%d) \yDrop esély: \r%3.2f%%", LadaNevek[8][0], Lada[8][id], DropItem[0][Mod]);
  24. menu_additem(menu, String, "8", 0);
  25.  
  26. menu_display(id, menu, 0);
  27. return PLUGIN_HANDLED;
  28. }

Szerző:  JohanCorn [2016.09.17. 16:50 ]
Hozzászólás témája:  Re: String Bővítés

Ezt így, ennél az új (egyszerűsített) menünél nem lehet. Esetleg kiveheted a \d \w \r \y karaktereket, amivel is növelni tudod.
Esetleg használhatsz kevesebb menüpontot egy oldalon és akkor mondjuk a 6-7 gomb lesz a tovább lépés. Esetleg a régi fajta menüvel még talán bővíthető.

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/