Fred Posted October 13, 2008 Author Share Posted October 13, 2008 What do parse command? I explore source and i see alot example:something = Val(Parse(2))And i dont understood this, what that mean? Link to comment Share on other sites More sharing options...
Bobosk Posted October 13, 2008 Share Posted October 13, 2008 basicly, what it's doing… is taking what is sent(like call handledata(blah1 blah2 blah3) and breaking it up where there are spaces, so for that Parse(1) is blah1, Parse(2) is blah2, Parse(3) is blah3.. Link to comment Share on other sites More sharing options...
Fred Posted October 13, 2008 Author Share Posted October 13, 2008 I understood now, thank you Bobosk :) Link to comment Share on other sites More sharing options...
Robin Posted October 13, 2008 Share Posted October 13, 2008 Look at the top of HandleData.The packets are sent and received as solid blocks of text. They'll look something like this:```loginérobinépasswordé0é1é0é0éå```é is the SEP_CHAR you use when sending packets, å being the END_CHARThe Split() command reads the SEP_CHAR (é) as a split, and then takes the rest of the data from the packet and stores it into the array.The array is called parse, and would look something like this```Parse(0) = loginParse(1) = robinParse(2) = passwordParse(3) = 0Parse(4) = 1Parse(5) = 0Parse(6) = 0```Then the array would end on END_CHAR (å) Link to comment Share on other sites More sharing options...
Fred Posted October 13, 2008 Author Share Posted October 13, 2008 Ok i think i get it, but we will see in practice:) Thank you. 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