Originally posted by [b]koopa[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4417
Please take a look at the following snippet:
CODE
if(strcharinfo(2) != "")
menu "Save", M_Save, "Use Storage", M_Storage, "Use Guild Storage", M_Guild_Storage, "Cancel", -;
else
menu "Save", M_Save, "Use Storage", M_Storage, "Cancel", -;
When the user gets in the first menu (if statement is true, because user is in a guild), the first menu is displayed properly. When the user hits cancel, the second menu (from the else-branch) is displayed, which is not as if-else is intended.
Edit: Putting brackets around if-else makes it work properly:
CODE
if(strcharinfo(2) != "") {
menu "Save", M_Save, "Use Storage", M_Storage, "Use Guild Storage", M_Guild_Storage, "Cancel", -;
} else {
menu "Save", M_Save, "Use Storage", M_Storage, "Cancel", -;
}
This post has been edited by koopa: Aug 30 2010, 03:08 PM