Jump to content

BUG


xeon17

Recommended Posts

The Script :

radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) 
createBlip(279.40317, 1831.25439, 7.72656,61) 
marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255)   
addCommandHandler("buyarea51", 
function(player) 
    local gangName = exports.gang_system:getPlayerGang(player) 
    if gangName then 
        local money = getPlayerMoney(player) 
        if (money >= 1000000) then 
            takePlayerMoney(player, 1000000) 
            local color = exports.gang_system:getGangColor(gangName) 
            setRadarAreaColor(radararea2, color[1], color[2], color[2], 255) 
            outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area #FFF000 51", player, 0, 0, 0, true) 
        end 
    end 
end) 

The bug :

[2013-12-30 15:45:13] WARNING: [XeonGames]Base\Area51.lua:12: Bad argument @ 'setRadarAreaColor' [Expected element at argument 1, got nil] 

Can someone help me

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...