فاّرس Posted April 23, 2013 Share Posted April 23, 2013 (edited) -- Client addEventHandler("onClientGUIClick", root, function (player) if (source == button) then showCursor(false) triggerServerEvent("FriendlyFire",localPlayer) end end) -- Server addEvent("FriendlyFire",true) addEventHandler("FriendlyFire",root, fucntion() Team = createTeam(...) setTeamFriendlyFire ( Team, false ) end) ^ Debug : WARNING: folder\server.lua:5: Bad argument @ 'setTeamFriendlyFire' ----------------------------------------------------------------------------------------------------- local marker = createMarker ( ... ) car = {} function Hit (player) if ( getElementType(player) == "player" ) then destroyElement(car[player]) end end addEventHandler("onMarkerHit",marker,Hit) ^ Debug : WARNING:myMod\server.lua:4: Bad argument @ 'getElementType'[Expected element at argument 1] Edited April 23, 2013 by Guest Link to comment
iPrestege Posted April 23, 2013 Share Posted April 23, 2013 addEvent("FriendlyFire",true) addEventHandler("FriendlyFire",root, function( ) Team = createTeam(....) if not Team then return end setTeamFriendlyFire (Team,false) outputChatBox("setTeamFriendlyFire = true",source,0,255,0) end ) Link to comment
فاّرس Posted April 23, 2013 Author Share Posted April 23, 2013 addEvent("FriendlyFire",true) addEventHandler("FriendlyFire",root, function( ) Team = createTeam(....) if not Team then return end setTeamFriendlyFire (Team,false) outputChatBox("setTeamFriendlyFire = true",source,0,255,0) end ) ^ يعطيك العآفيهه, + getElementType وش الحل معهآ ^ Link to comment
iPrestege Posted April 23, 2013 Share Posted April 23, 2013 كودكـ صح اطرح الكود كآمل ^ آشوفة Link to comment
فاّرس Posted April 23, 2013 Author Share Posted April 23, 2013 (edited) local marker = createMarker ( ... ) car = {} addEventHandler("onMarkerHit",marker, function (player) if getElementType(player) == "player" then setElementPosition(...) car[player] = createVehicle(...) warpPedIntoVehicle(...) end end ) local Marker = createMarker ( ... ) addEventHandler("onMarkerHit",Marker, function ( player ) if ( getElementType(player) == "player" ) then destroyElement(car[player]) end end ) Edited April 23, 2013 by Guest Link to comment
iPrestege Posted April 23, 2013 Share Posted April 23, 2013 الجدول veh? و السيارة car? Link to comment
فاّرس Posted April 23, 2013 Author Share Posted April 23, 2013 الجدول veh?و السيارة car? لآ كآن خطأ في الكتآبه Link to comment
فاّرس Posted April 23, 2013 Author Share Posted April 23, 2013 وش المشكلة الحين؟ الكود شغال بس يطلع الخطأ بالديبوق , كذآ يجيب لآق Link to comment
فاّرس Posted April 23, 2013 Author Share Posted April 23, 2013 اي سطر؟ اطرحة local marker = createMarker ( ... ) car = {} function Hit (player) if ( getElementType(player) == "player" ) then destroyElement(car[player]) end end addEventHandler("onMarkerHit",marker,Hit) ^ Debug : WARNING:myMod\server.lua:4: Bad argument @ 'getElementType'[Expected element at argument 1] Link to comment
iPrestege Posted April 23, 2013 Share Posted April 23, 2013 مافية كود سطر 4 سطر 5 ؟ جربتة مآفية شي ء! الخطأ من الاشياء الثانية اطرحة كآمل بـ كل شيء !! احداثيات .. etc ! Link to comment
فاّرس Posted April 23, 2013 Author Share Posted April 23, 2013 ^ خلآص آنلحت المشككلهه يعطيكم العآفيهه Locked. Link to comment
iPrestege Posted April 23, 2013 Share Posted April 23, 2013 الله يعافيكـ بالتوفيق .. بـ اللي تسوية 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