kamel10 Posted July 8, 2014 Share Posted July 8, 2014 يقول في خطأ في السطر 107 mark = { {1125.1999511719, -2037.1999511719, 69.300003051758}, {1682.3000488281, -2290.1000976563, -1.7999999523163}, {1883.1999511719, -1991.4000244141, 13.199999809265}, {2799.6999511719, -2417.3000488281, 13.300000190735}, {2896.3999023438, -1960.6999511719, 4}, {406.39999389648, -1539.9000244141, 31.700000762939}, {1083.5, -683.5, 113.80000305176}, {613.09997558594, -607.70001220703, 17}, {2476.6000976563, -945.5, 80.300003051758}, {2564, -118, 51.799999237061}, {1726.5999755859, -1880.4000244141, 13.699999809265}, {154.30000305176, -1942.4000244141, 3.4000000953674}, {815.20001220703, -1094.5, 25.39999961853}, {1742.6999511719, -1562.1999511719, 13.800000190735}, {2141.1999511719, -2262.6000976563, 12.89999961853}, {991.29998779297, -1525.1999511719, 13.5}, {-100.90000152588, -1567.8000488281, 2.5999999046326}, {2809.8999023438, -1182, 24.5}, {1819.4000244141, -1142.6999511719, 23.700000762939}, {2520.1999511719, -1487, 23.60000038147}, {2337.3999023438, -1245.4000244141, 22.10000038147}, {320.29998779297, -1328.8000488281, 14.39999961853}, {1154.0999755859, -1879.9000244141, 13.199999809265}, {1792.5, -2302.6999511719, -2.7000000476837}, {829.29998779297, -923.09997558594, 54.900001525879}, {561.29998779297, -1359.0999755859, 14.800000190735}, {1899, -1992.5, 13.300000190735}, {1881.5999755859, -1313.4000244141, 14.39999961853}, {538.90002441406, -1318.9000244141, 17.200000762939}, {784.5, -1734.9000244141, 13.199999809265} } bag = { {1244.6685791016, -1258.5989990234, 12.174118041992}, {872.66986083984, -1341.521484375, 12.546875}, {1118.1220703125, -1022.8830566406, 33.9921875}, {1468.650390625, -904.47052001953, 53.8359375}, {2113.5920410156, -1498.5637207031, 9.421875}, {2388.1765136719, -1820.4766845703, 12.546875}, {1984.7507324219, -1718.9265136719, 14.96875}, {1741.8079833984, -2691.5715332031, 5.0636463165283}, {1339.5395507813, -2345.6655273438, 12.546875}, {1342.1771240234, -1675.142578125, 16.718641281128}, {1504.9318847656, -1152.5692138672, 23.078125}, {2140.2512207031, -1007.2143554688, 60.752571105957}, {2524.7338867188, -2254.7697753906, 12.331317901611}, {2183.2648925781, -2667.9069824219, 16.882808685303}, {2874.8630371094, -1590.6097412109, 21.388389587402}, {2266.5122070313, 167.56521606445, 27.153551101685}, {2245.3803710938, -121.53649902344, 27.153547286987}, {1678.0913085938, -894.224609375, 53.008686065674}, {1519.1584472656, -1452.7445068359, 13.203125}, {1270.2076416016, -1468.4309082031, 9.046875}, {1429.2014160156, -1863.6143798828, 12.546875}, {663.50268554688, -1577.4061279297, 13.54674911499}, {558.54724121094, -1075.4486083984, 71.921989440918}, {725.05718994141, -439.31225585938, 15.3359375}, {1442.4204101563, -629.80712890625, 94.718566894531}, {2111.8723144531, -1255.9906005859, 24.488334655762}, {2290.7302246094, -2017.2045898438, 12.542568206787}, {1651.3283691406, -2538.0241699219, 12.546875}, {2519.8571777344, -2688.7385253906, 12.647548675537}, {2530.2971191406, -2434.9482421875, 16.882808685303}, } function createBag() local mt = math.random(#bag) ob = createObject(1210,bag[mt][1],bag[mt][2],bag[mt][3]) setElementCollisionsEnabled(ob,false) time = setTimer(roo,100,0,ob) mar = createMarker(bag[mt][1],bag[mt][2],bag[mt][3],"corona",0.5,255,0,0,120) bl = createBlipAttachedTo(mar,17) setElementData(mar,"num",mt) exports.guimessages:outputServer(root,"* #0069c7The Briefcase Has Been Started",0,255,0,true) end addEventHandler("onResourceStart",resourceRoot,createBag) addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getElementType(player) == "player" then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) exports.guimessages:outputServer(root,"* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end if ( isPedInVehicle( player ) ) then return end if ( getTeamN(source) == "Police" ) then exports.guimessages:outputServer(player,"#0069c7Police Can't Take The Bag",0,255,0,true) return end) function roo(ele) local x,y,z = getElementRotation(ele) setElementRotation(ele,x,y,z + 5) end addEventHandler("onPlayerWasted",root, function () if getElementData(source,"bag") and getElementData(source,"bag") == true then local data = getElementData(atBag,"num") local data = tonumber(data) local x,y,z = getElementPosition(source) setElementData(source,"bag",false) destroyElement(atBag) destroyElement(marker) destroyElement(bli) destroyElement(marBli) ob = createObject(1210,x,y,z) setElementCollisionsEnabled(ob,false) time = setTimer(roo,100,0,ob) mar = createMarker(x,y,z,"corona",0.5,255,0,0,120) setElementData(mar,"num",data) bl = createBlipAttachedTo(mar,17) end end end ) addEventHandler("onMarkerHit",root, function (player) if ( source == marker ) then if getElementType(player) == "player" then setElementData(player,"bag",false) destroyElement(marker) destroyElement(marBli) destroyElement(bli) destroyElement(atBag) exports.guimessages:outputServer(root,"* #ffffff[ #ff0000" .. getPlayerName(player) .. " #ffffff] #0069c7Has Won #00ff0050000$ #0069c7From The Bag",255,0,0,true) setElementData(player, "Money", getElementData(player, "Money") + 50000) triggerClientEvent(player,"onShowMoney",player) setTimer(createBag,30000,1) end end end ) addEventHandler("onVehicleStartEnter",root, function (player) if getElementData(player,"bag") and getElementData(player,"bag") == true then cancelEvent() exports.guimessages:outputServer(player,"* #0069c7You Can't Enter The Vehicle You Have The Bag",255,0,0,true) end end ) addEventHandler("onPlayerQuit",root, function () if getElementData(source,"bag") and getElementData(source,"bag") == true then local data = getElementData(atBag,"num") local data = tonumber(data) local x,y,z = getElementPosition(source) setElementData(source,"bag",false) destroyElement(atBag) destroyElement(marker) destroyElement(bli) destroyElement(marBli) ob = createObject(1210,x,y,z) setElementCollisionsEnabled(ob,false) time = setTimer(roo,100,0,ob) mar = createMarker(x,y,z,"corona",0.5,255,0,0,120) setElementData(mar,"num",data) bl = createBlipAttachedTo(mar,17) end end ) Link to comment
TAPL Posted July 8, 2014 Share Posted July 8, 2014 end ناقصين و في سطر 104 السورس هنا ماركر مو لاعب مو موجود getTeamN و فنكشن ما اشوف لها معنى بمكانها الحالي return كلمة زايد في سطر 133 end و عندك Link to comment
kamel10 Posted July 8, 2014 Author Share Posted July 8, 2014 كيف سورس هنا ماركر عشان انا الي ضايفه عشان ما ياخذ الشنطة الشرطي كيف اصلحه Link to comment
kamel10 Posted July 9, 2014 Author Share Posted July 9, 2014 خلاص حليت المشكلة الحين ابي كود لما يبي ياخذ الشرطي الشنطة ما يقدر Link to comment
#DRAGON!FIRE Posted July 9, 2014 Share Posted July 9, 2014 خلاص حليت المشكلة الحين ابي كود لما يبي ياخذ الشرطي الشنطة ما يقدر هنا للمساعدة فقط . _ - Link to comment
kamel10 Posted July 9, 2014 Author Share Posted July 9, 2014 (edited) كيف للمساعدة انا ابي مساعدة في كود .. edit: تم التصليح بنفسي Edited July 9, 2014 by Guest 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