Scythe Posted June 23, 2010 Author Share Posted June 23, 2010 how do i get the client to pull info from the server/scripts folder? Link to comment Share on other sites More sharing options...
Robin Posted June 23, 2010 Share Posted June 23, 2010 Packets. Link to comment Share on other sites More sharing options...
Scythe Posted June 23, 2010 Author Share Posted June 23, 2010 ya after i posted i found another topic that som1 said that to and now i looked up winstock tuts Link to comment Share on other sites More sharing options...
Scythe Posted June 24, 2010 Author Share Posted June 24, 2010 ok i have looked up a whole bunch of tuts and looked at the source but i dont understand how to do this all tuts on the web are for making chats and i just need someone to explain the process in regard to eclipse Link to comment Share on other sites More sharing options...
Scythe Posted June 24, 2010 Author Share Posted June 24, 2010 bump Link to comment Share on other sites More sharing options...
PD Posted June 24, 2010 Share Posted June 24, 2010 what version are you using? Link to comment Share on other sites More sharing options...
Scythe Posted June 24, 2010 Author Share Posted June 24, 2010 stable Link to comment Share on other sites More sharing options...
Scythe Posted June 25, 2010 Author Share Posted June 25, 2010 bump Link to comment Share on other sites More sharing options...
Kimimaru Posted June 25, 2010 Share Posted June 25, 2010 When you click a button or want to get information from the Server, send a packet like so:```Call SendData("info" & END_CHAR)```In the Server modHandleData, you have to handle the packet, hence the name, so make a new case like this:```Case "info"  Call Packet_Info(Index)  Exit Sub```At the bottom of modHandleData, add Sub Packet_Info:```Sub Packet_Info(ByVal Index As Long)  Dim Text as String  Text = GetVar((file directory here))  ' Send the data back to the Client  Call SendDataTo(Index, "info" & SEP_CHAR & Text & END_CHAR)End Sub```Since the Server is now sending data back to the Client, it only makes sense to need to handle the data somewhere in the Client, and that's modHandleData, so we need to create a new Case there as well:```Case "info"  ' code hereExit Sub```That's really all. Use the GetVar command to retrieve information from your Scripts folder, and then do whatever you want with the information in the Client. Link to comment Share on other sites More sharing options...
Scythe Posted June 25, 2010 Author Share Posted June 25, 2010 thx dude ur the best i have been trying to figure this out forever Link to comment Share on other sites More sharing options...
Scythe Posted June 25, 2010 Author Share Posted June 25, 2010 last thing how would i display this in a text box? Link to comment Share on other sites More sharing options...
Robin Posted June 25, 2010 Share Posted June 25, 2010 You don't need to create a new packet if you just want to add it to the text box. There's already a framework of packets which do the basics like that for you.```PlayerMsg(index, "This is some text", BrightRed```Will add it to their textbox. Link to comment Share on other sites More sharing options...
Scythe Posted June 25, 2010 Author Share Posted June 25, 2010 no like on a form like frmwhatever.text1.Text Link to comment Share on other sites More sharing options...
Robin Posted June 25, 2010 Share Posted June 25, 2010 in " 'code here " just put```frmwhatever.text1.Text = Parse(1)``` Link to comment Share on other sites More sharing options...
Scythe Posted June 25, 2010 Author Share Posted June 25, 2010 thank you both yall are truly the greatest Link to comment Share on other sites More sharing options...
Robin Posted June 25, 2010 Share Posted June 25, 2010 No problem. We're here to help. 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