summaryrefslogtreecommitdiff
path: root/gamemode/client/cl_syncronize.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client/cl_syncronize.lua')
-rw-r--r--gamemode/client/cl_syncronize.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/gamemode/client/cl_syncronize.lua b/gamemode/client/cl_syncronize.lua
index fa60de0..f84799d 100644
--- a/gamemode/client/cl_syncronize.lua
+++ b/gamemode/client/cl_syncronize.lua
@@ -1,11 +1,9 @@
--Makes sure the player knows about things like inventory, skills, experience ect.
net.Receive( "gms_SetResource", function( length, pl)
- print("Setresources message sent from server")
local name = net.ReadString()
if(GMS.GetResourceByName(name).UniqueData) then
local restable = net.ReadTable()
- PrintTable(restable)
if(Resources[name] == nil) then
Resources[name] = {}
end
@@ -14,12 +12,8 @@ net.Receive( "gms_SetResource", function( length, pl)
if(Resources[name] == nil) then
Resources[name] = 0
end
- print("Getting with bitcount:" .. GMS.NETINT_BITCOUNT)
local num = net.ReadInt(GMS.NETINT_BITCOUNT)
- print("Resource name: " .. name)
- print("Resource num: " .. num)
Resources[name] = num
end
- print("Finished resource get")
GAMEMODE:ReloadSpawnMenu()
end)