diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7664704 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.bak \ No newline at end of file diff --git a/Client/CMH.lua b/Client/CMH.lua index 57ba053..23c8768 100644 --- a/Client/CMH.lua +++ b/Client/CMH.lua @@ -88,7 +88,7 @@ local function ProcessVariables(reqId, ...) end if not datacache[reqId] then - datacache[reqId] = { count = 1, data = {}} + datacache[reqId] = { count = 0, data = {}} end for i=1, msg:len(), splitLength do @@ -331,7 +331,7 @@ function SendClientRequest(prefix, functionId, ...) local reqId = GenerateReqId() local varTable = ProcessVariables(reqId, ...) - CMH.SendREQ(functionId, #varTable["data"], reqId, prefix) + CMH.SendREQ(functionId, varTable.count, reqId, prefix) end --A API END \ No newline at end of file diff --git a/Server/SMH.lua b/Server/SMH.lua index e2e6776..a396130 100644 --- a/Server/SMH.lua +++ b/Server/SMH.lua @@ -92,7 +92,7 @@ local function ProcessVariables(sender, reqId, ...) datacache[sender:GetGUIDLow()] = datacache[sender:GetGUIDLow()] or {} if not datacache[sender:GetGUIDLow()][reqId] then - datacache[sender:GetGUIDLow()][reqId] = { count = 1, data = {}} + datacache[sender:GetGUIDLow()][reqId] = { count = 0, data = {}} end for i=1, msg:len(), splitLength do @@ -345,7 +345,7 @@ function Player:SendServerResponse(prefix, functionId, ...) local reqId = GenerateReqId() local varTable = ProcessVariables(self, reqId, ...) - SMH.SendREQ(self, functionId, #varTable["data"], reqId, prefix) + SMH.SendREQ(self, functionId, varTable.count, reqId, prefix) end -- API END \ No newline at end of file