quote:
Originally posted by Wakaki
this is wat i get when i cahnge the input in the window and click save
nothing happens and the debug screen syas:
code:
Function called: OnGetScriptMenu
Function called: OnEvent_MenuClicked
Function called: OnPoliteEvent_CtrlClicked
What's supposed to happen?
Well, the problem seems to be the ControlId. Check if that control has the same name on the interface and on the if condition.
code:
function OnPoliteEvent_CtrlClicked(PlusWnd, CtrlId) {
if(CtrlId == "Btnlol") {
OverwriteFile("defwelcomemsg.txt", PlusWnd.GetControlText("EdtWelcomeMSg"));
OverwriteFile("defgoodbyemsg.txt", PlusWnd.GetControlText("EdtGoodbyeMsg"));
}
}