TimeShadow Posted April 7, 2014 Share Posted April 7, 2014 I am having some problems with a script that I am trying to edit. This is the Message that I received: Too few variables in MessageBox parameters; expected 9, found 0 All that I am trying to do is add a button to a MSG that brings up instructions Script After Edit: elseif ( MenuItem == 5 ) ShowMessage aaBMHECCOchemStatsMSG elseif ( MenuItem == 6 ) Endif Endif Endif End Script Before Edit: elseif MenuItem == 5 Endif Endif Endif End Also: int MenuItem The 5 was the Exit button and now the 5 is the Instructions button and the 6 is the Exit button. No other modifications were made and the script worked flawlessly prior to edit, any help would be greatly appreciated. TimeShadow Link to comment Share on other sites More sharing options...
luthienanarion Posted April 7, 2014 Share Posted April 7, 2014 Message forms can be made to take parameters using format specifiers. http://geck.bethsoft.com/index.php?title=ShowMessage I'm guessing that aaBMHECCCOchemStatsMSG's text has 9 such specifiers, which means that you must pass 9 parameters. The buttons are irrelevant to this error. Link to comment Share on other sites More sharing options...
TimeShadow Posted April 7, 2014 Author Share Posted April 7, 2014 (edited) Can you elaborate on specifiers?aaBMHECCOchemStatsMSG is just the ID I used for the Message in the GECK, it has no assigned Menu Buttons, it just contains the text message.I have done this in the past w/ no issues. Just don't understand the message "too few variables in MessageBox parameters;". Let me ask you something, is the body of the text have to adhere to some sort of guidelines? Are there curtain characters that I can't use? TS Edited April 7, 2014 by TimeShadow Link to comment Share on other sites More sharing options...
TimeShadow Posted April 7, 2014 Author Share Posted April 7, 2014 (edited) Within the body of the text I am using these characters,% and +. There are 9 % signs in the text body. TS Edited April 7, 2014 by TimeShadow Link to comment Share on other sites More sharing options...
Recommended Posts