Jump to content

guiGridListAddRow() - Boolean Value


^.^

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...