• Include a Nwint in a Dlistview?
    2 replies, posted
LocalPlayer():GetNWInt( 'LVL' ) ) Im trying to get that to show into my DlistView, but it wont work for some reason. [CODE] ListView = vgui.Create("DListView",Scan_Tab) ListView:SetPos(0,0) ListView:SetSize( 570 ,415) ListView:SetMultiSelect(false) ListView:AddColumn("Name") ListView:AddColumn("Team") ListView:AddColumn("Level") function ListView:Paint( w, h ) draw.RoundedBox( 0, 0,0, w, h, Color( 255,255,255, 155 )) surface.SetDrawColor( 0,0,0 ) surface.DrawOutlinedRect(1, 1, w-2, h-2) end for k,v in pairs(player.GetAll()) do ListView:AddLine(v:Nick(),(team.GetName(v:Team())),LocalPlayer():GetNWInt( 'LVL' ) )) end [/CODE]
v:GetNWInt( 'LVL' )
[QUOTE=Robotboy655;43788042]v:GetNWInt( 'LVL' )[/QUOTE] Woops, gave the wrong rating. Anyway, Robbo is right. What you're trying to do would make everything in the list the same.
Sorry, you need to Log In to post a reply to this thread.