if and else
Posted: Sun Mar 27, 2011 6:44 pm
L2J Revision Number: newest
L2JDP Revision Number: newest
Hello,
i am very new at developing own sourcecodes for l2j cores and i got now my first question. Why does my script not work?
i added in Enterworld.java the following lines:
if i log in as a gm char there is a "Hallo GM!" in the System Window. But for normal players there doesnt happen anything...why?
L2JDP Revision Number: newest
Hello,
i am very new at developing own sourcecodes for l2j cores and i got now my first question. Why does my script not work?
i added in Enterworld.java the following lines:
Code: Select all
if (activeChar.isGM()) { activeChar.sendMessage("Hallo GM!"); } else { activeChar.sendMessage("Hallo Spieler"); }