Valhalla Legends Forums Archive | Battle.net Bot Development | Command Errors

AuthorMessageTime
JaMi
Um okey hears the deal, all my commands do what there supposed to, except they also pop a error msg each time you tell it to do a command....it doesnt crash the program, and it performs the command as its supposed to, so umm any clue how to get rid of error boxes? heres an example of one of the commands that causes an error
[code]
       Case "unban"
           Send "/unsquelch " & pA(1), True
           Send "/unban " & pA(1), True
[/code]
im pretty sure its a "Object Required" Error
January 21, 2003, 12:23 PM
MesiaH
easy, stop using ethbot code, and re-do your command parsing the way YOU want to do it. Your error is being caused by the the array item "1" being null, making pA(1) out of range. You can fix this by putting On Error Resume Next anywhere in the sub or function, but it won't proccess the command.
January 21, 2003, 10:13 PM

Search