function stream:ParseDataPacket(name,id,pid,typ,data) local idx = self.q if (pid != 0) then if (idx[pid] != nil) then if (idx[pid].nType == TYP_TAB) then idx = idx[pid].ptr --poiner to table elseif (idx[pid].nType == TYP_STR_PTR) then if (idx[pid].ptr[name] != nil ) then idx[pid].ptr[name]=idx[pid].ptr[name]..tostring(data) --just in case (the tostring) someone like manually sends number down. else idx[pid].ptr[name]=tostring(data) end return --no wonkiness har end end end if (idx == self.q) then idx = self.data end if (typ==TYP_TAB) then idx[name]={} self.q[id].ptr = idx[name] self.q[id].nType = typ elseif (typ==TYP_STR_PTR) then idx[name]="" self.q[id].ptr = idx self.q[id].name = name end end