Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _func_PacketDecodeString(p)
- local str = ""
- local byte = string.format("%c", p:Decode1())
- local x = 0
- while byte ~= '\0' do
- str = str .. byte
- byte = string.format("%c", p:Decode1())
- x = x +1
- if x > 30 then break end
- end
- return str
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement