Does add2menu not work within loops? For instance, trying to get a menu to dynamically list all player names on the server whenever it's opened:
Only 1 name ever shows up, cn 0. :(
Edit:
NVM, what that is trying to do is currently not possible. Thanks for clearing it up V-Man. :P
[SELECT ALL] Code:
alias genkickmenu [
loop a (curplayers) [
add2menu nkick [menuitemvar [concat (findpn $a)]]
]
add2menu nkick [
menuitem [] -1
menuitem [ OK] [closemenu nkick]
]
]
newmenu nkick
menuinit [genkickmenu]
Only 1 name ever shows up, cn 0. :(
Edit:
NVM, what that is trying to do is currently not possible. Thanks for clearing it up V-Man. :P