|
| 04 Jan 2015 11:34 AM |
I would like to know, how could I get around it properly? how to use math.max with a Table? |
|
|
| Report Abuse |
|
|
lah30303
|
  |
| Joined: 15 Feb 2008 |
| Total Posts: 10027 |
|
|
| 04 Jan 2015 11:48 AM |
local max = -hath.huge for _, v in pairs(table) do max = math.max(v, max) end |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2015 11:49 AM |
o.O
anyway, I found my Answer |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 04 Jan 2015 11:52 AM |
math.max(unpack(table))
really, use this instead |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2015 11:56 AM |
| yeah, thats the answer I found |
|
|
| Report Abuse |
|
|