SHARE
TWEET

Untitled

a guest Nov 19th, 2012 28 Never
  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
RAW Paste Data
Top