Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getXP(ply) //gets the current xp for the class the player selected
- local amount
- if (!ply || ply:SteamID()==nil) then return end
- DB:Query("SELECT xp FROM PlayerData WHERE steam = '" .. ply:SteamID() .. "' AND class = " .. ply:GetHumanClass() ..";", function(callback)
- if (callback and callback[1]) then
- PrintTable(callback)
- ply:SetNWInt("xp", callback[1][3])
- amount = callback[1][3]
- end
- end
- return amount
- end
Add Comment
Please, Sign In to add comment