^.^ Posted December 9, 2012 Share Posted December 9, 2012 Hey Guys, I got a strange problem today. I made a mapshop but the script outputs an error that guiGridListAddRow is a boolean value. How can guiGridListAddRow() be a boolean value? Here's the code: addEvent("panel:fillmap",true) addEventHandler("panel:fillmap", getRootElement(), function(gamemodeMapTable,gamemode,map,s) if gamemodeMapTable then guiGridListClear(msGridlist) local row = guiGridListAddRow(msGridlist) aGamemodeMapTable = gamemodeMapTable; for id,gamemode in pairs (gamemodeMapTable) do if (gamemode.name == "Race") then for id,map in ipairs (gamemode.maps) do if s then if string.find(string.lower(map.name),string.lower(s)) then guiGridListSetItemText(msGridlist,guiGridListAddRow(msGridlist),gColumn,map.name,false,false); end else guiGridListSetItemText(msGridlist,guiGridListAddRow(msGridlist),gColumn,map.name,false,false); end end end end end end) Thank you for your help! Link to comment
Cadu12 Posted December 9, 2012 Share Posted December 9, 2012 Returns the row id if it has been created, false otherwise. Next time, you should read wiki about that function. 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