d0g1
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 23 |
|
|
| 27 Jun 2012 11:25 AM |
Apparently, line 2 of this is wrong... How is it?
local pt = game.Players:GetChildren() while not table.maxn(pt) > 5 do game.Workspace.Message.Text = "Waiting for players - " .. 5-table.maxn(pt) .. " to go!" wait(10) end saying
Workspace.Script:2: attempt to compare number with boolean Script "Workspace.Script", Line 2 stack end |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2012 11:28 AM |
| table.maxn Aparently has a boolean [true/false] in it? |
|
|
| Report Abuse |
|
|
d0g1
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 23 |
|
|
| 27 Jun 2012 11:30 AM |
table.maxn (table) Returns the largest positive numerical index (Not value) of the given table, or zero if the table has no positive numerical indices. (To do its job this function does a linear traversal of the whole table.)
Apparently not. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2012 11:32 AM |
Uhh.. then idk
Maybe try GetPlayers() instead of GetChildren() ? Besides that Idk |
|
|
| Report Abuse |
|
|
d0g1
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 23 |
|
| |
|