Dialog not working with $server - 02/03/06 02:47 PM
I am trying to get this dialog to work correctly
dialog buddy_add {
title "Add Buddy"
size -1 -1 86 33
option dbu
edit "", 1, 4 3 77 13
button "Ok", 2, 23 18 37 12, Ok
}
ON *:DIALOG:buddy_add:sclick:2: {
if ($server == $null ) { echo -a 4ERROR: YOU ARE NOT CONNECTED TO A CR SERVER }
else {
echo -a /NS BUDDY ADD $did(buddy_add,1).text
dialog -m buddy_addnote buddy_addnote
}
}
Everything works ok but the if ($server == $null) I am not connected to a server but the dialog will move to the else { Statment.
I would be greatful for any help.
dialog buddy_add {
title "Add Buddy"
size -1 -1 86 33
option dbu
edit "", 1, 4 3 77 13
button "Ok", 2, 23 18 37 12, Ok
}
ON *:DIALOG:buddy_add:sclick:2: {
if ($server == $null ) { echo -a 4ERROR: YOU ARE NOT CONNECTED TO A CR SERVER }
else {
echo -a /NS BUDDY ADD $did(buddy_add,1).text
dialog -m buddy_addnote buddy_addnote
}
}
Everything works ok but the if ($server == $null) I am not connected to a server but the dialog will move to the else { Statment.
I would be greatful for any help.