Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Packet Tutorial
#13
Nope. It won't.

Val(w/e) is used to get a numerical value from a string. This is why we use it in modHandleData, because we send packet's as strings.

If you are sending a string of data (ie. someone's name) then you do not add a 'val'. It simply stay's as 'parse(1)'.

Also, every packet you create should have this:

If UBound(Parse) (amount of SEP_CHAR's found in the packet)
Call HackingAttempt
Exit sub
end if

Otherwise your server can easily be crashed.

Yes, this was created by Shannara, but he posted it wrong. There is actually another Parse between the last SEP_CHAR and the END_CHAR which you need to take into account.

~Kite
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)