Author Topic: Help, me out.  (Read 5161 times)

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #45 on: November 20, 2008, 07:48:42 PM »
Code: [Select]
[10:48:25 PM] UserJoins Call Error On File> C:\Program Files\Stealth Bot 4\plugins\Cb.txt
 [10:48:25 PM] Error Number: 13   Description: Type mismatch
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
Help, me out.
« Reply #46 on: November 20, 2008, 09:51:07 PM »
lol, oops. I forgot to mention you can't create an array as a constant!

Code: [Select]
'cb
'0.1
'&Clan ban:Vector

'// Add the clans you want banned here.
Public ClanTags
ClanTags = Array("", "", "", "")

Sub cb_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatString)
  userClan = GetInternalDataByUsername(Username, 0)
  If userClan = "" Then Exit Sub

  If InArray(ClanTags, GetInternalDataByUsername(Username, 0)) Then
    Command BotVars.Username, "/shitadd " & Username & " Clan banned", True
  End If
End Sub

Function InArray(arr, Item)
  For i=0 to Ubound(arr)
    If Lcase(arr(i)) = Lcase(Item) Then
      InArray = True
      Exit Function
    End If
  Next

  '// If this line is reached, the user's clan is not banned.
  InArray = False
End Function

That works.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #47 on: November 21, 2008, 12:11:20 PM »
Code: [Select]
ClanTags = Array("", "", "", "")
It this how you write it?

Code: [Select]
ClanTags = Array("clan gay", "clan hi", "clan you", "clan by")
??
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Reason

  • Global Moderators
  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • http://Rev77.net/FailBot/latest.zip
Help, me out.
« Reply #48 on: November 21, 2008, 04:29:09 PM »
Its

Code: [Select]
ClanTags = Array("gay", "hi", "you", "by")
Quote
04:37:18 PM | ?Swamp_Demon15@Azeroth? make me 1..?
04:37:28 PM | ?MikeA@Azeroth? can you code in VB6, lol?
04:37:47 PM | ?MikeA@Azeroth? And do you know how to have sex while hanging from your little toe?
04:38:01 PM | ?MikeA@Azeroth? If no to either, I'm sorry, we can't take you.
04:38:11 PM | ?MikeA@Azeroth? Joel taught us all the second one.