inventory=args.inventory||{},-- create new inventory later
@ -32,8 +32,8 @@ local function CreateCharTable( args )
end
functionQuantum.Server.Char.Load(pl,index,tbl)
localid=pl:SteamID()..":"..index
if(Quantum.Server.Char.Players[id]~=nil)then
localid=pl:SteamID()..";"..index
if(Quantum.Server.Char.Players[id]==nil)then
Quantum.Server.Char.Players[id]=CreateCharTable(tbl)-- create the character
Quantum.Server.Char.Players[id].inventory=tbl.inventory||Quantum.Server.Inventory.Create(Quantum.Server.Char.Players[id])-- give the character an inventory
@ -74,3 +74,11 @@ function Quantum.Server.Char.SetCurrentCharacter( pl, index )