• Print a Part of the Table?
    4 replies, posted
Olá I want to Print all the Teams that exists. If i PrintTable the team.GetAllTeams() i get [code] 1: Color: a = 100 b = 255 g = 0 r = 0 Joinable = true Name = Admins Score = 0 2: Color: a = 100 b = 0 g = 255 r = 0 Joinable = true Name = Guests Score = 0 0: Color: a = 255 b = 100 g = 255 r = 255 Joinable = false Name = Joining/Connecting Score = 0 3: Color: a = 100 b = 0 g = 0 r = 255 Joinable = true Name = Friends Score = 0 1002: Color = table: 02FD71E0 Joinable = true Name = Spectator Score = 0 1001: Color = table: 02FD71E0 Joinable = false Name = Unassigned Score = 0 [/code] How can i just get a Row like Name = Admins Name = Specator and so on?
[code]for k , v in pairs(team.GetAllTeams()) do print(v.Name , v,Score) end[/code]
Ok thank you. AnotherQuestion. The Teams have IDs like 1043 and so on. how can i get it ? that it loos like admin 1 spec 2
[code]for k , v in pairs(team.GetAllTeams()) do print(v.Name , k) end[/code]
Thank you !
Sorry, you need to Log In to post a reply to this thread.