Author | Message | Time |
---|---|---|
WiLD | Hi again, i wanted 2 add war3 support 2 my bot and i got everything right as far i as no, but when it says "logged in" i got a error saying: runtime error"9" subscript out of range so i was talking 2 some1 and they said do this: Public Function W3chk(ByVal Username As String) If InStr(Username, "@Lordaeron") <> 0 Then W3chk = Replace(Username, "@Lordaeron", "") End If End Function in a module and he said u need to replace @Lordaeron with nothing. how would i do this, or has ne1 else got an idea how 2 connect with war3 using csb thx | July 2, 2003, 2:12 PM |
Yoni | Your function doesn't do anything. You're passing the Username parameter by value, so any changes to it inside the function are dismissed. Try removing the word "ByVal". You asked 3 different questions: 1) Why you get runtime error 9. 2) How to replace @Lordaeron with nothing. 3) How to connect with War3 using CSB. These questions seem to have nothing to do with each other and you haven't given enough information for any of them. Please restate. | July 2, 2003, 2:26 PM |
WiLD | Sorry, i think i know how 2 get it connected with war3 using csb but the runtime error has something to do with it. I havnt tried removing ByVal yet, but i no i have to add W3chk ...... to everything that includes a different user (user in the current channel). Would this be just W3chk or something else? | July 2, 2003, 2:32 PM |
Yoni | I don't see why your W3chk function is necessary for anything. | July 2, 2003, 2:34 PM |
WiLD | Well i got a war3 cdkey and i set the product to 3RAW and it gets to logged in and i get that error runtime error"9" subscript out of range so some1 told me that i needed 2 replace @Lordaeron with nothing and that i should use that code. if u no how 2 get this code 2 work plz tell or if u no a different way. | July 2, 2003, 2:41 PM |
______ | see this post for the csb/run time error 9 https://davnit.net/bnet/vL/phpbbs/index.php?board=17;action=display;threadid=1772 | July 2, 2003, 3:39 PM |
DarkMinion | Removing the war3 suffixes from names can lead to bad problems (duplicate usernames being one of them). Say someone comes in on the name "DarkMinion[vL]", they could then log on to war3 on "DarkMinion[vL]@Lordaeron" and confuse your bot. Your bot would remove the "@Lordaeron" part, and then you would appear to have 2 "DarkMinion[vL]" 's in the channel. Whoever told you to do that is a moron. | July 2, 2003, 3:51 PM |
WiLD | Thx alot, do you know if there is going to be a new version of CSB with War3 support? or would what userloser said work? [quote] But it *should* request latest version byte using BNLS_REQUESTVERSIONBYTE [0x10] (or something, too lazy to check name). [/quote] if that would work how would i do this? | July 2, 2003, 3:56 PM |
UserLoser | I meant CSB it's self should do that, not you. | July 2, 2003, 7:54 PM |
WiLD | o ok lol srr | July 3, 2003, 12:23 AM |