crzyone9584 Posted March 20, 2011 Author Share Posted March 20, 2011 there are no commands…. There is no /addfriend. Its all button based. You add a label to the pic frmMain name the name i told you to name it. double click it and add the code that i supplied... How hard is that? Link to comment Share on other sites More sharing options...
Whackeddie99 Posted March 20, 2011 Share Posted March 20, 2011 yes i know I did everything you said, its just that the labels and stuff inside the new box - what do i do with them! Link to comment Share on other sites More sharing options...
Bloo Posted March 20, 2011 Share Posted March 20, 2011 Don't you have to code the buttons now for them to work right? Link to comment Share on other sites More sharing options...
crzyone9584 Posted March 20, 2011 Author Share Posted March 20, 2011 Double click them and add the code that goes with those labels.and colorful seriously? how you gonna answer a question with a question? stop trying to help when you just make more questions for people. Link to comment Share on other sites More sharing options...
Bloo Posted March 20, 2011 Share Posted March 20, 2011 Dude, I was just trying to help so chill. =| Link to comment Share on other sites More sharing options...
Sunku Posted March 20, 2011 Share Posted March 20, 2011 A friend system now THAT is awesome. Link to comment Share on other sites More sharing options...
crzyone9584 Posted March 20, 2011 Author Share Posted March 20, 2011 Thanks sunku.colorful your posts are not helpful when you post a question to answer a question. Its a waste of time… Link to comment Share on other sites More sharing options...
Sunku Posted March 20, 2011 Share Posted March 20, 2011 @crzyone9584:> Thanks sunku.> > colorful your posts are not helpful when you post a question to answer a question. Its a waste of time…your welcome also once i get vb 6 i will make a custom eclipse version with it if thats ok. Link to comment Share on other sites More sharing options...
Helladen Posted March 21, 2011 Share Posted March 21, 2011 @crzyone9584:> Double click them and add the code that goes with those labels.> > and colorful seriously? how you gonna answer a question with a question? stop trying to help when you just make more questions for people.Be nice now. Link to comment Share on other sites More sharing options...
crzyone9584 Posted March 21, 2011 Author Share Posted March 21, 2011 @Helladen:> Be nice now.When he stops posting useless posts in my threads I'll be nice…And sunku thats fine as long as the credits are there. Link to comment Share on other sites More sharing options...
gizmo1 Posted March 28, 2011 Share Posted March 28, 2011 Wow, I didn't know you were a programmer, It really must have been awhile since I've talked to you, Keep it up man! Link to comment Share on other sites More sharing options...
crzyone9584 Posted March 28, 2011 Author Share Posted March 28, 2011 lol nah ive been a programmer. Its just recently i started to get invovled with vb6. Link to comment Share on other sites More sharing options...
dxxknight Posted April 7, 2011 Share Posted April 7, 2011 Awesome nice job Link to comment Share on other sites More sharing options...
MrKris Posted April 7, 2011 Share Posted April 7, 2011 Why did you quote the whole first post? lol Link to comment Share on other sites More sharing options...
dxxknight Posted April 7, 2011 Share Posted April 7, 2011 sorry it was an accident lol Link to comment Share on other sites More sharing options...
erkro1 Posted April 7, 2011 Share Posted April 7, 2011 Added this into my source, but when I click on the Friendlist button the server gets Run-time error 9 "Subscript out of range" and he's selecting this line :```nLength = (UBound(nByte) - LBound(nByte)) + 1```In Public Sub WriteBytesPlease help.. Link to comment Share on other sites More sharing options...
crzyone9584 Posted April 7, 2011 Author Share Posted April 7, 2011 in lblfriends_click remove UpdateFriendList… It auto updates when people sign on or off so i remeove3d the handeling for that server side. Guess i missed that on updating the post. Link to comment Share on other sites More sharing options...
erkro1 Posted April 7, 2011 Share Posted April 7, 2011 @crzyone9584:> in lblfriends_click remove UpdateFriendList… It auto updates when people sign on or off so i remeove3d the handeling for that server side. Guess i missed that on updating the post.Thanks, that worked ;)But now I don't get red messages when I'm using a name that don't exists.. Link to comment Share on other sites More sharing options...
crzyone9584 Posted April 10, 2011 Author Share Posted April 10, 2011 That has to do with a check when adding a player to the list. Check server side where you add the friend. Make sure you have```PlayerMsg.......``` Link to comment Share on other sites More sharing options...
erkro1 Posted April 11, 2011 Share Posted April 11, 2011 @crzyone9584:> That has to do with a check when adding a player to the list. Check server side where you add the friend. Make sure you have> > ```> PlayerMsg.......> ```This is my code :```Sub HandleAddFriend(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddR As Long, ByVal ExtraVar As Long)Dim Buffer As clsBufferDim FriendName As StringDim i As LongDim i2 As LongSet Buffer = New clsBufferBuffer.WriteBytes Data()FriendName = Buffer.ReadStringSet Buffer = Nothing 'See if character exsists If FindChar(FriendName) = False Then Call PlayerMsg(Index, "Player doesn't exsist", Red) Exit Sub If FriendName = GetPlayerName(Index) Then Call PlayerMsg(Index, "You can't add yourself", Red) Exit Sub Else 'Add Friend to List For i = 1 To MAX_FRIENDS If Player(Index).Friends(i).FriendName = vbNullString Then Player(Index).Friends(i).FriendName = FriendName Player(Index).AmountofFriends = Player(Index).AmountofFriends + 1 Exit For End If Next End IfEnd If 'Update Friend List Call UpdateFriendList(Index)End Sub``` Link to comment Share on other sites More sharing options...
crzyone9584 Posted April 11, 2011 Author Share Posted April 11, 2011 Its there. It is this peace of code thats in what you posted```'See if character exsists If FindChar(FriendName) = False Then Call PlayerMsg(Index, "Player doesn't exsist", Red) Exit Sub```To make sure it works, put a break point there at the beginning of the if statement and then add a friend then press f8 to go through the code line by line and let me know what happens. Link to comment Share on other sites More sharing options...
erkro1 Posted April 11, 2011 Share Posted April 11, 2011 @crzyone9584:> Its there. It is this peace of code thats in what you posted> > ```> 'See if character exsists> If FindChar(FriendName) = False Then> Call PlayerMsg(Index, "Player doesn't exsist", Red)> Exit Sub> ```> To make sure it works, put a break point there at the beginning of the if statement and then add a friend then press f8 to go through the code line by line and let me know what happens.Nothing happens.. Link to comment Share on other sites More sharing options...
crzyone9584 Posted April 11, 2011 Author Share Posted April 11, 2011 Then you messed the code up somewhere. I just re followed the tutorial and it works just fine in a vanilla copy of EO Beta….. Link to comment Share on other sites More sharing options...
erkro1 Posted April 12, 2011 Share Posted April 12, 2011 @crzyone9584:> Then you messed the code up somewhere. I just re followed the tutorial and it works just fine in a vanilla copy of EO Beta…..Ok, I'll try that later, first school .. Link to comment Share on other sites More sharing options...
Carim123 Posted April 14, 2011 Share Posted April 14, 2011 >! ~~Can you help?>! I've followed the tutorial, but I think I skipped a step, as when I try and do a full compile, I get an error on```HandleDataSub(CAddFriend) = GetAddress(AddressOf HandleAddFriend) HandleDataSub(CRemoveFriend) = GetAddress(AddressOf HandleRemoveFriend)```in modHandleData (Server-side).>! An error comes up saying "Compile error: Variable not defined">! I've backtracked a bit, but can't find where I've gone wrong ;/.~~Sorry, I found my error. Turns out I accidentally c+p the same thing at the bottom, instead of the other thing* * *Sorry, have another error..Whenever I click Add Friend, the box does open up, but it doesn't actually add anything to the List…I thing I overlooked something... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now