Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 19th, 2012  |  syntax: None  |  size: 0.39 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data