Say I have a function "void updateConfirmBox(int iSpriteTitle, int iSpriteQuestion)"
If this function is kept in my global script, when I start typing the function and add the parenthesis, autocomplete gives me a pop-up of what goes inside "(int iSpriteTitle, int iSpriteQuestion)"...
However, if I place the function in another script and import it into the .ash, I have to write it like this:
import void updateConfirmBox(int, int);
If I try to include the int's name, Ill get an error...so how do I write it in the .ash so I dont get an error--->
(cannot define body of imported function)
Id like it when Autocomplete shows me a pop-up of what goes inside the parenthesis, it doesnt just show "(int, int)", but "(int iSpriteTitle, int iSpriteQuestion)"?
import void updateConfirmBox(int iSpriteTitle, int iSpriteQuestion);
Works fine. I've done this with every module I've released.
Actually you're right, it does work now...I must have generated another error for something else and fixed it since then...:P
Based on the error you're describing it sounds like you were trying to do:
// DOES NOT WORK; THIS CODE IS INVALID
import void updateConfirmBox(int iSpriteTitle, int iSpriteQuestion) {
// ...
}
Anyway, glad you got it sorted. ;)