Author | Message | Time |
---|---|---|
GoSuGaMING | What do you guys think is the best way to sort the different ranks out? [img]http://www.gosugaming.net/ClanList.JPG[/img] You know (Chieftain top) (shamin) (Grunt) (Peon) | June 28, 2004, 5:44 AM |
Myndfyr | [quote author=GoSuGaMING link=board=17;threadid=7475;start=0#msg67550 date=1088401447] What do you guys think is the best way to sort the different ranks out? [img]http://www.gosugaming.net/ClanList.JPG[/img] You know (Chieftain top) (shamin) (Grunt) (Peon) [/quote] I do it this way: Chieftan: Insert at 0. Shaman: Insert at 0 plus the number of Chieftans received. Grunt: Insert at 1 plus the number of Shamans received. Peons: Insert at 1 plus the number of Shamans and Grunts received. Recruits: Insert at 1 plus the number of Shamans, Grunts, and Peons received. | June 28, 2004, 7:58 PM |
BaDDBLooD | I added them all to a array Than for each item in the array i had Name as String Rank as Integer Status as Integer Than i just used a Loop to add them to the listview depending on Rank ;\ | June 28, 2004, 8:42 PM |
Stealth | I use the ListView's built-in sorting system - one of my columns [invisible] contains their rank, so I just sort Ascending based on that column. | June 28, 2004, 9:36 PM |
BaDDBLooD | Stealth.. I might look into doing it that way! Is that ok if i use your idea? | June 28, 2004, 9:43 PM |
GoSuGaMING | [quote author=Stealth link=board=17;threadid=7475;start=0#msg67638 date=1088458591] I use the ListView's built-in sorting system - one of my columns [invisible] contains their rank, so I just sort Ascending based on that column. [/quote] [code] Public Function GetClanList(Data As String) Form1.LvClan.ListItems.Clear Dim List() As String Dim x As Integer List = Split(Mid$(Data, 10), Chr(0), -1) For x = 0 To UBound(List) If Not List(x) = "" Then Select Case Asc(List(x)) Case Is > 4 Form1.LvClan.ListItems.Add , , List(x) Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 128 Case 0, 1, 2, 3, 4 Select Case Asc(List(x)) Case 4 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 131 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).Add , , "1" 'Clan Chieftain Case 3 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 132 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).Add , , "2" 'Clan Leader Case 2 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 130 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).Add , , "3" 'Clan Member Case 1 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 129 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).Add , , "4" 'Member thats been in clan for over a week Case 0 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 128 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).Add , , "4" 'Member thats been in clan under a week Case Else Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).SmallIcon = 128 Form1.LvClan.ListItems(Form1.LvClan.ListItems.Count).Add , , "4" End Select Case Else End Select End If Next x Form1.LvClan.Refresh End Function [/code] It doesnt add the 4 for Peons... I know that it sorts it by Numerical Numbers... Do you see a flaw in the code? | June 28, 2004, 11:02 PM |
Stealth | [code]Sub AddMember(ByVal Name As String, Rank As Integer, Online As Integer) If Rank = 0 Then Rank = 1 If Rank > 4 Then Rank = 5 '// handle bad ranks '// add user With lvClan .ListItems.Add lvClan.ListItems.Count + 1, , Name, , Rank .ListItems(.ListItems.Count).ListSubItems.Add , , , Online + 6 .ListItems(.ListItems.Count).ListSubItems.Add , , Rank .SortKey = 2 .SortOrder = lvwDescending .Sorted = True End With End Sub[/code] | June 28, 2004, 11:56 PM |
GoSuGaMING | [quote author=Stealth link=board=17;threadid=7475;start=0#msg67667 date=1088466967] [code]Sub AddMember(ByVal Name As String, Rank As Integer, Online As Integer) If Rank = 0 Then Rank = 1 If Rank > 4 Then Rank = 5 '// handle bad ranks '// add user With lvClan .ListItems.Add lvClan.ListItems.Count + 1, , Name, , Rank .ListItems(.ListItems.Count).ListSubItems.Add , , , Online + 6 .ListItems(.ListItems.Count).ListSubItems.Add , , Rank .SortKey = 2 .SortOrder = lvwDescending .Sorted = True End With End Sub[/code] [/quote] If i use your code i will never learn.. help me with mine if you would :X | June 29, 2004, 12:19 AM |
BaDDBLooD | [quote author=MoNeY link=board=17;threadid=7475;start=0#msg67724 date=1088487059] the code you posted wasnt yours >.< it was from Void Bot Source [/quote] I'm not surprised Anyways, Maybe if you Instant Messaged Or Private Messaged stealth and asked him to explain how to use the Listview's Sort Property, he would explain it to you. Otherwise you could post in the Visual Basic section of this forum; under the topic "Sorting listview items". | June 29, 2004, 12:53 PM |
Tuberload | Or here's a revolutionary idea: rtfm... | June 29, 2004, 7:46 PM |
BaDDBLooD | rtfm? | June 29, 2004, 9:47 PM |
Eli_1 | [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67741 date=1088513580] [quote author=MoNeY link=board=17;threadid=7475;start=0#msg67724 date=1088487059] the code you posted wasnt yours >.< it was from Void Bot Source [/quote] Anyways, Maybe if you Instant Messaged Or Private Messaged stealth and asked him to explain how to use the Listview's Sort Property, he would explain it to you. [/quote] The ListView's sort feature is self-explanitory, as are most VB things. Edit: Whew, this is my first post in this forum in a little while - feels wierd. :P | June 29, 2004, 9:50 PM |
GoSuGaMING | [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67741 date=1088513580] [quote author=MoNeY link=board=17;threadid=7475;start=0#msg67724 date=1088487059] the code you posted wasnt yours >.< it was from Void Bot Source [/quote] I'm not surprised Anyways, Maybe if you Instant Messaged Or Private Messaged stealth and asked him to explain how to use the Listview's Sort Property, he would explain it to you. Otherwise you could post in the Visual Basic section of this forum; under the topic "Sorting listview items". [/quote] I know the method for it... stop posting stupid shit... better yet dont try to help me... you never can or do so ignore my threads ... k thnx | June 29, 2004, 9:56 PM |
Tuberload | [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67816 date=1088545669] rtfm? [/quote] read the f*cking manual | June 29, 2004, 10:01 PM |
GoSuGaMING | [quote author=Tuberload link=board=17;threadid=7475;start=0#msg67820 date=1088546514] [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67816 date=1088545669] rtfm? [/quote] read the f*cking manual [/quote] MSDN is better The problem right now is that its not recgonizing my &H0 case | June 29, 2004, 10:27 PM |
ChR0NiC | [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67625 date=1088455324] I added them all to a array Than for each item in the array i had Name as String Rank as Integer Status as Integer Than i just used a Loop to add them to the listview depending on Rank ;\ [/quote] keep in mind, you didn't write your code, you took it from a source. Edit: Sorry, I know Badd made his own 0x7D code, I was just feeling the effects of a boot to the colon. | June 29, 2004, 10:42 PM |
GoSuGaMING | [quote author=ChR0NiC link=board=17;threadid=7475;start=15#msg67830 date=1088548966] [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67625 date=1088455324] I added them all to a array Than for each item in the array i had Name as String Rank as Integer Status as Integer Than i just used a Loop to add them to the listview depending on Rank ;\ [/quote] keep in mind, you didn't write your code, you took it from a source. [/quote] thats not helping me :X 0x00: Initiate that has been in the clan for less than one week 0x01: Initiate that has been in the clan for over one week 0x02: Member 0x03: Officer 0x04: Leader im not even recieving 0x00 | June 29, 2004, 10:46 PM |
Tuberload | [quote author=GoSuGaMING link=board=17;threadid=7475;start=0#msg67829 date=1088548041] [quote author=Tuberload link=board=17;threadid=7475;start=0#msg67820 date=1088546514] [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67816 date=1088545669] rtfm? [/quote] read the f*cking manual [/quote] MSDN is better [/quote] You know you're a real genius... | June 29, 2004, 10:59 PM |
GoSuGaMING | [quote author=ChR0NiC link=board=17;threadid=7475;start=15#msg67830 date=1088548966] [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67625 date=1088455324] I added them all to a array Than for each item in the array i had Name as String Rank as Integer Status as Integer Than i just used a Loop to add them to the listview depending on Rank ;\ [/quote] keep in mind, you didn't write your code, you took it from a source. [/quote] CRoNo ZeR0@Mac.com: Oh yeah I gave this code to baddblood since his code sucked GoSuGaMING: what code CRoNo ZeR0@Mac.com: 0x7d BaddBlood you have no room to post on this thread... | June 29, 2004, 11:23 PM |
BaDDBLooD | Yeah it sucked. I did it myself, so of course it sucked. I am a Complete Novice at Visual Basic, and i never ever say i am better than what i actually am. Binary was nice enough to give me the "Parsing" of 0x7D cause the way i did it was Really Really bad. Than i took what he gave me and Added my own for the listview, which i used a array. Which is EXACTLY what i stated in that one post. You have no right to say where i can or can't post. | June 30, 2004, 12:03 AM |
BaDDBLooD | [quote author=GoSuGaMING link=board=17;threadid=7475;start=15#msg67831 date=1088549170] [quote author=ChR0NiC link=board=17;threadid=7475;start=15#msg67830 date=1088548966] [quote author=BaDDBLooD link=board=17;threadid=7475;start=0#msg67625 date=1088455324] I added them all to a array Than for each item in the array i had Name as String Rank as Integer Status as Integer Than i just used a Loop to add them to the listview depending on Rank ;\ [/quote] keep in mind, you didn't write your code, you took it from a source. [/quote] thats not helping me :X 0x00: Initiate that has been in the clan for less than one week 0x01: Initiate that has been in the clan for over one week 0x02: Member 0x03: Officer 0x04: Leader im not even recieving 0x00 [/quote] I Don't know why your not recieving 0x00, maybe Noone is a Initiate? EDIT: Please don't flame me, all i was trying to do was help to the best of my ability. | June 30, 2004, 12:05 AM |
GoSuGaMING | You told me to "test" it... theres nothing to test.... so hows that helping me? and nice double post :X | June 30, 2004, 12:24 AM |
BaDDBLooD | Well i thought testing the problem with different solutions would have been the best idea at the time.. sorry if you didn't feel that would work. Sorry to the admins for the double post.. but i thought that 2 different ones would be more clear. | June 30, 2004, 12:48 AM |
GoSuGaMING | [quote author=BaDDBLooD link=board=17;threadid=7475;start=15#msg67852 date=1088556482] Well i thought testing the problem with different solutions would have been the best idea at the time.. sorry if you didn't feel that would work. Sorry to the admins for the double post.. but i thought that 2 different ones would be more clear. [/quote] you havnt helped me at all through this whole thread of course im a member under a weekold... i added myself to the clan list 2 days ago... | June 30, 2004, 12:58 AM |
Soul Taker | Jesus Christ, would you two stop fighting in EVERY goddamn BotDev thread? | June 30, 2004, 2:21 AM |
BaDDBLooD | Maybe instead of being a fucking ass saying i didn't help you, you could say thanks for trying. You should definately say thanks to everyone in this thread who has actually helped you. next time i won't even post, you can help your self. | June 30, 2004, 3:34 AM |
crashtestdummy | http://www.rancidkoolaid.com/images/arguing.jpg | June 30, 2004, 3:51 AM |
LW-Falcon | You two should really just ignore each other for a while. | June 30, 2004, 3:53 AM |
BaDDBLooD | [quote author=muert0 link=board=17;threadid=7475;start=15#msg67883 date=1088567468] http://www.rancidkoolaid.com/images/arguing.jpg [/quote] That always cracks me up I do ignore him falcon, i was just trying to help someone, i guess i shouldn't ;\ | June 30, 2004, 3:58 AM |
GoSuGaMING | [quote author=BaDDBLooD link=board=17;threadid=7475;start=15#msg67889 date=1088567885] [quote author=muert0 link=board=17;threadid=7475;start=15#msg67883 date=1088567468] http://www.rancidkoolaid.com/images/arguing.jpg [/quote] That always cracks me up I do ignore him falcon, i was just trying to help someone, i guess i shouldn't ;\ [/quote] You provoke every fight.... | June 30, 2004, 3:58 AM |
crashtestdummy | provoke www.webster.com Be quiet already. | June 30, 2004, 4:01 AM |
Arta | I'm getting sick of this. I've already had to delete numerous stupid posts in this thread. So, warning: Stop posting useless crap. There are several forums where that is appropriate. This one is not among them. Please make only useful, relevant, substantive posts. Flaming is not allowed. Personal attacks are not allowed. Mildly offensive images debasing disabled people are not allowed. I'm going to start requesting bans if people do not adhere to the policy of this forum, which has been very clearly laid out by Spht. | June 30, 2004, 11:44 AM |