Hey guys,just messing around with arrays right now,and for some reason my menu won't come up(Well it comes up,but there are no options within it) when I tried making it dynamic,this is actually my first array used menu,so I'm a lil' lost,does anyone know what I'm doing wrong?
setarray @cities$[0],"Morocc","Alberta","Izlude","Lutie","Comodo","Yuno","Amatsu","Gonryun","Umbala","Niflheim","Louyang","Jawaii","Ayothaya","Einbroch","Lighthalzen","Einbech","Hugel","Rachel","Veins","Moscovia";
for(set .@n,0; .@n<getarraysize(@cities$); set .@n, .@n+1)
{
set .@selectcity$[.@m],@cities$[.@n];
set .@m,.@m+1;
}
set @selectmenu$,getarraysize(.@selectcity$[0]);
for(set .@i,1; .@i <getarraysize(.@selectcity$); set .@i,.@i+1)
set @selectmenu$, @selectmenu$+":"+.@selectcity$[.@i];
select(.@selectmenu$);
Question
Pavi
Hey guys,just messing around with arrays right now,and for some reason my menu won't come up(Well it comes up,but there are no options within it) when I tried making it dynamic,this is actually my first array used menu,so I'm a lil' lost,does anyone know what I'm doing wrong?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.