Best-Killer Posted January 28, 2016 Share Posted January 28, 2016 there is a way for guiGridListGetItemText without using guiGridListGetSelectedItem ? Link to comment
NewbProgramming Posted January 28, 2016 Share Posted January 28, 2016 (edited) You can just use any number for the (int rowIndex, int columnIndex) arguments. guiGridListGetItemText will return false if rowIndex or columnIndex are invalid, so check if it returns false. Does not have to be from guiGridListGetSelectedItem returned values. To get the amount of rows: https://wiki.multitheftauto.com/wiki/Gu ... etRowCount To get the amount of columns: https://wiki.multitheftauto.com/wiki/Gu ... olumnCount Edited January 28, 2016 by Guest Link to comment
Best-Killer Posted January 28, 2016 Author Share Posted January 28, 2016 argument 2 got nill local rowA = guiGridListAddRow(vehicle_selector_grid) local vehicleName = guiGridListGetItemText(vehicle_selector_grid, rowA,2) Link to comment
NewbProgramming Posted January 28, 2016 Share Posted January 28, 2016 guiGridListAddRow(vehicle_selector_grid) returned nil. Doesn't make sense because it's supposed to return false when failed. Maybe you're reading the error or line # wrong. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now