brandonpoc 4 Posted April 21, 2013 Report Share Posted April 21, 2013 I am getting an error when I try to run my script: "Error: Sequence contains no elementsSource: Skype Account Creator > Untitled Script > MainThread > Create Skype Account" The path it refers to is a function, Create Skype Account. It is defined as such: define Create Skype Account { reset account("Any") clear cookies if($comparison(#useProxies, "=", 1)) { then { set(#currentStep, "Changing proxy", "Global") set(#proxy, $random list item(%proxyList), "Local") loop while($comparison(#proxy, "=", "")) { set(#proxy, $random list item(%proxyList), "Local") } set(#currentProxy, #proxy, "Global") change proxy("socks4://{#proxy}:59999") } else { set(#proxy, "", "Local") } } ........ rest of code ....... } .. etc etc. There certainly is a lot of "sequence" in it . The function worked in the past. I have no idea why this error is popping up now. Yet another thing that would be great for an actual debugger (not just a window showing the values of variables) could aide in debugging. I cannot find reference to this error message anywhere else. Quote Link to post Share on other sites
brandonpoc 4 Posted April 22, 2013 Author Report Share Posted April 22, 2013 I didn't know that "append to file" was a built-in command; UBot Studio's IDE must've been trying to auto-correct the line in the editor. I changed the name of the custom function append to line to append to and it's working fine. This was something that wasn't documented in the documentation that came with the program, and I wasn't aware of it. UBot studio also did not tell me that there was a conflicting function/command name. Either way, it's fixed, and now the program is no longer giving the Sequence contains no elements error. So, if anyone gets this error, please make sure your syntax is correct and that you haven't over-ridden a built-in command or function with your own! Regards,Brandon Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.