ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
|
| 21 Jun 2013 02:10 PM |
for i,vv in pairs(checkout:GetChildren()) do if vv.Name == "Item" then if vv.ID.Value == 0 then if (v.Size.Y.Offset) < total then total = (vv.Size.Y.Offset) guislot = vv end end end end
This skips the second row, and doesn't go to it until the end. I checked the positions, it only uses offsets. |
|
|
| Report Abuse |
|
|
ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
| |
|
ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
| |
|
sbk28
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 2528 |
|
|
| 21 Jun 2013 02:42 PM |
> if (v.Size.Y.Offset) < total then
* if (vv.Size.Y.Offset) < total then
..? |
|
|
| Report Abuse |
|
|
ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
|
| 21 Jun 2013 03:11 PM |
| total is set before, as 9999999 |
|
|
| Report Abuse |
|
|
sbk28
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 2528 |
|
|
| 21 Jun 2013 03:16 PM |
Changed "v.Size" to "vv.Size"
not anything to do with total |
|
|
| Report Abuse |
|
|
ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
| |
|