Guest User

Untitled

a guest
Oct 15th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function getXP(ply) //gets the current xp for the class the player selected
  2. local amount
  3. if (!ply || ply:SteamID()==nil) then return end
  4. DB:Query("SELECT xp FROM PlayerData WHERE steam = '" .. ply:SteamID() .. "' AND class = " .. ply:GetHumanClass() ..";", function(callback)
  5. if (callback and callback[1]) then
  6. PrintTable(callback)
  7. ply:SetNWInt("xp", callback[1][3])
  8. amount = callback[1][3]
  9. end
  10. end
  11. return amount
  12. end
Add Comment
Please, Sign In to add comment