Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sql_value_stats ( ply )
- local playerStats = sql.QueryValue("SELECT * FROM player_info WHERE unique_id = '"..ply:steamID().."'")
- local unique_id = tonumber(playerStats["unique_id"])
- local money = tonumber(playerStats["money"])
- local level = tonumber(playerStats["level"])
- local zombieexp = tonumber(playerStats["zombieexp"])
- ply:SetNWString("unique_id", unique_id)
- ply:SetNWInt("money", money)
- ply:SetNWInt("zombieexp", zombieexp)
- ply:SetNWInt("level", level)
- end
- function sql_value_skills ( ply )
- local playerSkills = sql.QueryValue("SELECT * FROM player_skills WHERE unique_id = '"..ply:steamID().."'")
- local unique_id = tonumber(playerSkills["unique_id"])
- local speech = tonumber(playerSkills["speech"])
- local fish = tonumber(playerSkills["fish"])
- local farm = tonumber(playerSkills["farm"])
- ply:SetNWString("unique_id", unique_id)
- ply:SetNWInt("speech", speech)
- ply:SetNWInt("fish", fish)
- ply:SetNWInt("farm", farm)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement