xeon17 Posted January 1, 2014 Posted January 1, 2014 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
Castillo Posted January 1, 2014 Posted January 1, 2014 That error means that the radar area doesn't exist.
xeon17 Posted January 1, 2014 Author Posted January 1, 2014 But the radar area exist this bug is show when i write command /buyarea51
xeon17 Posted January 1, 2014 Author Posted January 1, 2014 Yes i'm sure , i crated 1 script only the radar and work. still this bug when i write the command [2014-01-01 22:08:02] WARNING: 51\Area51.lua:12: Bad argument @ 'setRadarAreaColor' [Expected element at argument 1, got nil]
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