Adde Posted May 16, 2013 Share Posted May 16, 2013 Hello, I got a little problem with one script. When I add new Areas, It wont keep them zombieproof. It´s like the last 2 or 3 of them that´s not zombieproof and it doesn´t tell me anything in debug. local safeZoneRadar = { { -1704.0307, 644.0531, 150, 87, 0, 200, 0 }, { -1581.42, 419.68, 370, 100, 0, 200, 0 }, { 21.67, -2027.21, 3000, 1350, 0, 200, 0 }, { 827.55, -2828.13, 2194, 900, 0, 200, 0 }, { -72.80, 1641.66, 455, 461, 0, 200, 0 } , { -1631.71, 259.03, 320, 170, 0, 200, 0 } , { 2159.0454101563, -3506.8337402344, 330, 500, 200, 100, 0 }, { 141.91612243652, -152.04411315918, 140, -160, 0, 0, 100 }, { 74.169883728027, -143.12757873535, 70, -70, 0, 0, 100 }, { -2702.9335, 42.9113, -101, 117, 255, 20, 20 }, } addEventHandler( "onResourceStart", resourceRoot, function () for k, v in ipairs ( safeZoneRadar ) do local area = createRadarArea ( v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10] ) setElementData(area,"zombieProof", true) end end ) Link to comment
iPrestege Posted May 16, 2013 Share Posted May 16, 2013 There's only 7 arguments on the table and you set 10 on the radar area? Link to comment
Adde Posted May 16, 2013 Author Share Posted May 16, 2013 It was 7 from the beginning, I just changed from 7 to 8 to 9 to 10 to test if it was that. Link to comment
iPrestege Posted May 16, 2013 Share Posted May 16, 2013 -- # Server Side local safeZoneRadar = { { -1704.0307, 644.0531, 150, 87, 0, 200, 0 }, { -1581.42, 419.68, 370, 100, 0, 200, 0 }, { 21.67, -2027.21, 3000, 1350, 0, 200, 0 }, { 827.55, -2828.13, 2194, 900, 0, 200, 0 }, { -72.80, 1641.66, 455, 461, 0, 200, 0 }, { -1631.71, 259.03, 320, 170, 0, 200, 0 }, { 2159.0454101563, -3506.8337402344, 330, 500, 200, 100, 0 }, { 141.91612243652, -152.04411315918, 140, -160, 0, 0, 100 }, { 74.169883728027, -143.12757873535, 70, -70, 0, 0, 100 }, { -2702.9335, 42.9113, -101, 117, 255, 20, 20 } } addEventHandler( "onResourceStart", resourceRoot, function ( ) for k, v in ipairs ( safeZoneRadar ) do local area = createRadarArea ( v[1],v[2],v[3],v[4],v[5],v[6],v[7],255 ) if ( area ) then setElementData(area,"zombieProof", true) end end end) Ok any way try this! Link to comment
iPrestege Posted May 16, 2013 Share Posted May 16, 2013 1- debugscript 3 ? 2- Are u sure about the data? Link to comment
Adde Posted May 17, 2013 Author Share Posted May 17, 2013 The data is right, I figured out the problem. You can´t use " - " when you set size, then the script wont accept it. 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