PHP Code:
function MyGUI_WARPER_Popup1.onSelect(entryid){
if (entryid == 1){
removerowbyid(9);
MyGUI_WARPER_TextList1.addrow(0,"Armageddon Spar");
MyGUI_WARPER_TextList1.addrow(1,"Event House");
MyGUI_WARPER_TextList1.addrow(2,"Guild Lobby");
MyGUI_WARPER_TextList1.addrow(3,"Bank");
MyGUI_WARPER_TextList1.addrow(4,"Shop");
}
if (entryid == 2){
triggerserver("weapon", this.name, "warpPopTwo");
}
if (entryid == 3){
clearselection();
MyGUI_WARPER_TextList1.addrow(5,"Lasea");
MyGUI_WARPER_TextList1.addrow(6,"Treehouse Town");
}
if (entryid == 4){
clearselection();
MyGUI_WARPER_TextList1.addrow(7,"Cross Castle");
MyGUI_WARPER_TextList1.addrow(8,"SDE GuildHouse - Indola");
}
if (entryid == 5){
clearselection();
MyGUI_WARPER_TextList1.addrow(9,"Frontline");
}
}
I've obviously tried clearselection() and removerow() and removerowbyid().
How do it get it to only show the certain rows on each selected entry id?