Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function _func_PacketDecodeString(p)
  2. local str = ""
  3. local byte = string.format("%c", p:Decode1())
  4. local x = 0
  5. while byte ~= '\0' do
  6. str = str .. byte
  7. byte = string.format("%c", p:Decode1())
  8. x = x +1
  9. if x > 30 then break end
  10. end
  11. return str
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement