Aller au contenu

Photo

Order or parameters for ExecuteScriptEnhanced()


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
It appears that when you add parameters using the add parameter functions for ExecuteScriptEnhanced(), that the parameters have to be added in the order that they are passed into the function.  I recenly added a parameter to a function that was working, then it completely stopped working.  When I changed the order of the parameter functions in the calling script, the script started working again.

Has anyone else noticed this? 

#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
I would suspect this is true.

That was added in 1.23, and i've not seen anyone else using this yet. Grinning fool did it, and you might ask him more questions about it in IRC. ( he avoids posting in forums here as much as possible unless he really needs to moderate a bad apple )

#3
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I've used ExecuteScriptEnhanced() several times and have found it to be very useful. Haven't run into any problems as long as the parameters are in the right order.

#4
The Fred

The Fred
  • Members
  • 2 516 messages
I have it earmarked for some stuff, but I haven't really gotten around to using it much yet. It looks pretty useful, and I've used it for returning an int from a script, but not yet to add parameters. The whole order thing is good to know.