I have a little problem here... My goal was to find if end of the packet have '\n'. (Is that for EF hex code or something different?.. i am unfamiliar with hex codes though!)
Anyway.. if it dont have \n then the packet will be added to packets table and will return packet null or ''. but if it do, then i will unpack packets to packet and then return packet.
it just one of my experiment to figure it about this OnPluginPacketRecieved feature.
Anyway.. if it dont have \n then the packet will be added to packets table and will return packet null or ''. but if it do, then i will unpack packets to packet and then return packet.
it just one of my experiment to figure it about this OnPluginPacketRecieved feature.
..Lowe points no 0d 0a 4c 6f 77 65 20 70 6f 69 6e 74 73 20 6e 6f
rthwards....[32m 72 74 68 77 61 72 64 73 2e 0d 0a 1b 5b 33 32 6d
3223h,.[37m.[32m 33 32 32 33 68 2c 1b 5b 33 37 6d 1b 5b 33 32 6d
4645m,.[37m.[32 20 34 36 34 35 6d 2c 1b 5b 33 37 6d 1b 5b 33 32
m 4408e,.[37m.[3 6d 20 34 34 30 38 65 2c 1b 5b 33 37 6d 1b 5b 33
2m 10p,.[37m.[32 32 6d 20 31 30 70 2c 1b 5b 33 37 6d 1b 5b 33 32
m 15015en,.[37m. 6d 20 31 35 30 31 35 65 6e 2c 1b 5b 33 37 6d 1b
[32m 22125w.[37m 5b 33 32 6d 20 32 32 31 32 35 77 1b 5b 33 37 6d
ex-.. 20 65 78 2d ff ef
function OnPluginPacketReceived (packet)
if aDebug == true then
if string.find(packet, "\n$") == nil then
packetcount = packetcount + 1
table.insert(packets,packet)
packet = ''
else
table.insert(packets,packet)
packet = unpack(packets)
ColourNote("red","black","packets count until endline:" .. packetcount)
packetcount = 0
end -- if
end -- if
return packet
end