Advertisement
Guest User

Untitled

a guest
Nov 19th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function PLAYER:GetInitialXP()
  2. local xp = DB:query( "SELECT xp FROM PlayerData WHERE steam = '" .. self:SteamID() .. "' AND class = " .. self:GetHumanClass() ..";")
  3. xp:start()
  4. local callback = xp:getData()
  5. if (callback and callback[1]) then
  6. self:SetNWInt("xp", callback[1][1])
  7. self:SetNWInt("level", self:GetLevel())
  8. self:LoadData()
  9. else buildclasses(self)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement