Experience System Last Improvements (Help)

hello guys, a few days ago i buy a exp system , i work on it a lot and make a shop , skills , and add a prestige system … the problem ?

    • > IN Multiplayer Game Doesn’t Work < - *

Reason ? I Really Don’t Know , If you can help me to handle out this bug. I’m going to be really happy :slight_smile:

-> In Game Message:
[lua]
ERROR: GAMEMODE:‘HUDPaint’ Failed: [xxxx.lua:270] attempt to index field ‘RP_SQL’ (a nil value)
[/lua]

( well i call the RP_SQL in a shared file … here:

RP_SQL = {} )

[lua]
263 local x12 = ((ScrW() *0.85902777))
264 local y12 = ((ScrH() * 0.04444444))
265
266 local ply = LocalPlayer()
267 surface.SetTextColor (255,255,255,200)
268 surface.SetTextPos(x12,y12)
269 surface.SetFont(“font”)
270 surface.DrawText("Level: "…ply.RP_SQL[“GeneralLvl”], Color(255,0,0,255))
[/lua]

Here i call the GeneralLvl

[lua]

function RP_RegisterSkill(table1,table2)
table.insert(RP_SQL.Database,{T = “RP_SQL_Plys”, N = table1.N…“Lvl”, V = “Int”, InitVal = 0})
table.insert(RP_SQL.Database,{T = “RP_SQL_Plys”, N = table1.N…“Exp”, V = “Int”, InitVal = 0})
table.insert(RP.Stats,table2)
end

RP_SQL = {}
RP = {}

RP.Stats = {}
RP_RegisterSkill({T = “RP_SQL_Plys”, N = “General”, V = “Int”, InitVal = 1})
[/lua]

thanks :frowning:

You never defined _R.Player.RP_SQL?

I talked to this guy a day ago or something. He is querying on the client with SQLite I told him he has to query on the server if he wishes this to be a server addon.