The King Posted October 11, 2013 Share Posted October 11, 2013 السلام عليكم ورحمة الله وبركاته ياريت احد يقلي وش الخراب في ذا الكود addEventHandler("onMarkerHit",marker, function () local name = getPlayerName(source) outputChatBox ( "[ " .. name .. " ] test ", getRootElement(), 255, 0, 0, true ) end ) الي يصصحه ياريت يقلي وش الخطأ كان Link to comment
TAPL Posted October 11, 2013 Share Posted October 11, 2013 https://wiki.multitheftauto.com/wiki/OnMarkerHit The source of this event is the marker that got hit by the element. Link to comment
TAPL Posted October 11, 2013 Share Posted October 11, 2013 السورس للأفنت هذا هو الماركر الي انلمس يعني مو العنصر الي لمس الماركر و انت حاط سورس هنا يعني تجيب اسم الماركر؟ local name = getPlayerName(source) فهمت؟ Link to comment
The King Posted October 11, 2013 Author Share Posted October 11, 2013 السورس للأفنت هذا هو الماركر الي انلمسيعني مو العنصر الي لمس الماركر و انت حاط سورس هنا يعني تجيب اسم الماركر؟ local name = getPlayerName(source) فهمت؟ يعني كذا local name = getPlayerName(localPlayer) Link to comment
TAPL Posted October 11, 2013 Share Posted October 11, 2013 لا استخدم البارتمر https://wiki.multitheftauto.com/wiki/OnMarkerHit شوف الويكي element hitElement, bool matchingDimension hitElement: The element that hit the marker matchingDimension: True if the element is in the same dimension as the marker he hit Link to comment
The King Posted October 11, 2013 Author Share Posted October 11, 2013 السورس للأفنت هذا هو الماركر الي انلمسيعني مو العنصر الي لمس الماركر و انت حاط سورس هنا يعني تجيب اسم الماركر؟ local name = getPlayerName(source) فهمت؟ يعني كذا local name = getPlayerName(localPlayer) اها فهمت قصدك يعني احط اسم الماركر بس لما المسه يجي بالدي بوق server.lua:4:attempt to concatenato local 'name' (a boolean value) Link to comment
3NAD Posted October 11, 2013 Share Posted October 11, 2013 السورس للأفنت هذا هو الماركر الي انلمسيعني مو العنصر الي لمس الماركر و انت حاط سورس هنا يعني تجيب اسم الماركر؟ local name = getPlayerName(source) فهمت؟ يعني كذا local name = getPlayerName(localPlayer) localPlayer -- للكلنت فقط Link to comment
The King Posted October 11, 2013 Author Share Posted October 11, 2013 السورس للأفنت هذا هو الماركر الي انلمسيعني مو العنصر الي لمس الماركر و انت حاط سورس هنا يعني تجيب اسم الماركر؟ local name = getPlayerName(source) فهمت؟ يعني كذا local name = getPlayerName(localPlayer) localPlayer -- للكلنت فقط على حسب فهمي ل تابل سويت كذا local name = getPlayerName(MyMarker) -- اسم الماركر ولا ضبط وفي الدي بوق جا كل ماالمس الماركر server.lua:4:attempt to concatenato local 'name' (a boolean value) Link to comment
3NAD Posted October 11, 2013 Share Posted October 11, 2013 انت تبي تجيب اسم الماركر ؟ Link to comment
The King Posted October 11, 2013 Author Share Posted October 11, 2013 ابي اذا الاعب لمس الماركر يجي بالشات Link to comment
iMr.Dawix~# Posted October 11, 2013 Share Posted October 11, 2013 ابي اذا الاعب لمس الماركر يجي بالشات لااستخدم البارتمر https://wiki.multitheftauto.com/wiki/OnMarkerHit شوف الويكي element hitElement, bool matchingDimension hitElement: The element that hit the marker matchingDimension: True if the element is in the same dimension as the marker he hit addEventHandler("onMarkerHit",marker, function (hitElement,matchingDimension)-- hitElement هو الشيء الي لمس الماركر if getElementType(hitElement) == "player" then -- يتاكد ان الشيء الي لمس الماركر هو لاعب local name = getPlayerName(hitElement)--- جيب اسم اللاعب outputChatBox ( "[ " .. name .. " ] test ",root, 255, 0, 0, true )-- اخراجه بالشات end-- اغلاق if end-- اغلاق function )--اغلاق الحدث Link to comment
3NAD Posted October 11, 2013 Share Posted October 11, 2013 ابي اذا الاعب لمس الماركر يجي بالشات طيب حط بارامترhttps://wiki.multitheftauto.com/wiki/OnMarkerHit ----- Parameters [*]hitElement: The element that hit the marker [*]matchingDimension: True if the element is in the same dimension as the marker he hit ----- انت بتحتاج اول بارامتر , لو تلاحظ بعد الترجمة يقولك هو الإلمنت اللي لمس الماركر . function ( ) end function ( hitElement ) end بعد ماضفته داخل القوس تقدر تستخدم كـ عنصر في الأكواد getPlayerName ( hitElement ) Link to comment
The King Posted October 12, 2013 Author Share Posted October 12, 2013 مشكورين بس عندي مشكلتين الاول لما اضغط زر ينفتح البوابات بس لما اضغط ماينفتح كلنت addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[1] then triggerServerEvent("Ss",getLocalPlayer()) end end ) سيرفر addEvent("Ss",true) addEventHandler("Ss"getRootElement(), function () moveObject ( object1, 1000, 1560, -1663.3000488281, 549.79998779297 ) moveObject ( object2, 1000,1572.5999755859, -1661.8000488281, 549.40002441406 ) moveObject ( object3, 1000,1575.3000488281, -1656.5, 549.79998779297 ) moveObject ( object4, 1000,1575.3000488281, -1651.8000488281, 549.79998779297 ) moveObject ( object5, 1000,1575.3000488281, -1647, 549.79998779297 ) moveObject ( object6, 1000,1575.3000488281, -1642.1999511719, 549.79998779297 ) moveObject ( object7, 1000,1575.3000488281, -1637.5, 549.79998779297 ) moveObject ( object8, 1000,1575.3000488281, -1632.3000488281, 549.79998779297 ) moveObject ( object9, 1000,1571.9000244141, -1632.5, 550.20001220703 ) moveObject ( object10, 1000,1559, -1635.1999511719, 549.79998779297 ) moveObject ( object11, 1000,1559, -1640.5, 549.79998779297 ) moveObject ( object12, 1000,1559, -1645.3000488281, 549.79998779297 ) moveObject ( object13, 1000,1559.0999755859, -1650, 549.79998779297 ) moveObject ( object14, 1000,1559, -1654.8000488281, 549.79998779297 ) moveObject ( object15, 1000,1559, -1659.5, 549.79998779297 ) moveObject ( object16, 1000,1559.0999755859, -1635.3000488281, 556.09997558594 ) moveObject ( object17, 1000,1559.0999755859, -1640.5, 556.09997558594 ) moveObject ( object18, 1000,1559.0999755859, -1645.3000488281, 556.09997558594 ) moveObject ( object19, 1000,1559.0999755859, -1650, 556.09997558594 ) moveObject ( object20, 1000,1559.0999755859, -1654.8000488281, 556.09997558594 ) moveObject ( object21, 1000,1559.0999755859, -1659.6999511719, 556.09997558594 ) moveObject ( object22, 1000,1559.0999755859, -1664.5999755859, 556.09997558594 ) moveObject ( object23, 1000,1575.1999511719, -1661.5, 556.09997558594 ) moveObject ( object24, 1000,1575.1999511719, -1656.5999755859, 556.09997558594 ) moveObject ( object25, 1000,1575.1999511719, -1651.8000488281, 556.09997558594 ) moveObject ( object26, 1000,1575.1999511719, -1647, 556.09997558594 ) moveObject ( object27, 1000,1575.1999511719, -1643.8000488281, 556.09997558594 ) moveObject ( object28, 1000,1575.1999511719, -1637.5, 556.09997558594 ) moveObject ( object29, 1000,1575.1999511719, -1632.1999511719, 556.09997558594 ) end ) والثاني التاج ابي اخلي لون النك على لون التيم سويت كذا ولا ضبط elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#663300* Console " .. getTeamColor ( source ) .. " x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("* " .. getTeamColor ( source ) .. " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: " .. getPlayerName ( source ) .. ": " .. text) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( "* " .. getTeamColor ( source ) .. " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) end end addEventHandler("onPlayerChat", getRootElement(), chatbox) Link to comment
iPrestege Posted October 12, 2013 Share Posted October 12, 2013 addEventHandler("Ss"getRootElement(), ناقصك فاصلة لو تستخدم الـ Debug Script كان سويتها بدون ما تسأل . Link to comment
The King Posted October 12, 2013 Author Share Posted October 12, 2013 addEventHandler("Ss"getRootElement(), ناقصك فاصلة لو تستخدم الـ Debug Script كان سويتها بدون ما تسأل . سويت الفاصلة وضغطت الزر ولا انقتح الابواب Link to comment
iPrestege Posted October 12, 2013 Share Posted October 12, 2013 اطرح الكود كامل عشان نشوف الاخطاء . Link to comment
The King Posted October 12, 2013 Author Share Posted October 12, 2013 addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[1] then triggerServerEvent("Ss",getLocalPlayer()) end end ) سيرفر addEvent("Ss",true) addEventHandler("Ss",getRootElement(), function () moveObject ( object1, 1000, 1560, -1663.3000488281, 549.79998779297 ) moveObject ( object2, 1000,1572.5999755859, -1661.8000488281, 549.40002441406 ) moveObject ( object3, 1000,1575.3000488281, -1656.5, 549.79998779297 ) moveObject ( object4, 1000,1575.3000488281, -1651.8000488281, 549.79998779297 ) moveObject ( object5, 1000,1575.3000488281, -1647, 549.79998779297 ) moveObject ( object6, 1000,1575.3000488281, -1642.1999511719, 549.79998779297 ) moveObject ( object7, 1000,1575.3000488281, -1637.5, 549.79998779297 ) moveObject ( object8, 1000,1575.3000488281, -1632.3000488281, 549.79998779297 ) moveObject ( object9, 1000,1571.9000244141, -1632.5, 550.20001220703 ) moveObject ( object10, 1000,1559, -1635.1999511719, 549.79998779297 ) moveObject ( object11, 1000,1559, -1640.5, 549.79998779297 ) moveObject ( object12, 1000,1559, -1645.3000488281, 549.79998779297 ) moveObject ( object13, 1000,1559.0999755859, -1650, 549.79998779297 ) moveObject ( object14, 1000,1559, -1654.8000488281, 549.79998779297 ) moveObject ( object15, 1000,1559, -1659.5, 549.79998779297 ) moveObject ( object16, 1000,1559.0999755859, -1635.3000488281, 556.09997558594 ) moveObject ( object17, 1000,1559.0999755859, -1640.5, 556.09997558594 ) moveObject ( object18, 1000,1559.0999755859, -1645.3000488281, 556.09997558594 ) moveObject ( object19, 1000,1559.0999755859, -1650, 556.09997558594 ) moveObject ( object20, 1000,1559.0999755859, -1654.8000488281, 556.09997558594 ) moveObject ( object21, 1000,1559.0999755859, -1659.6999511719, 556.09997558594 ) moveObject ( object22, 1000,1559.0999755859, -1664.5999755859, 556.09997558594 ) moveObject ( object23, 1000,1575.1999511719, -1661.5, 556.09997558594 ) moveObject ( object24, 1000,1575.1999511719, -1656.5999755859, 556.09997558594 ) moveObject ( object25, 1000,1575.1999511719, -1651.8000488281, 556.09997558594 ) moveObject ( object26, 1000,1575.1999511719, -1647, 556.09997558594 ) moveObject ( object27, 1000,1575.1999511719, -1643.8000488281, 556.09997558594 ) moveObject ( object28, 1000,1575.1999511719, -1637.5, 556.09997558594 ) moveObject ( object29, 1000,1575.1999511719, -1632.1999511719, 556.09997558594 ) end ) ويجيني بالديبوق Bad Argment 'moveObjcet' Link to comment
The King Posted October 12, 2013 Author Share Posted October 12, 2013 اطرح الخطأ كامل .. شف الخاصص Link to comment
The King Posted October 12, 2013 Author Share Posted October 12, 2013 مافيه مساعدة ؟؟؟ والله محتاجة ضروري Link to comment
jafar Posted October 12, 2013 Share Posted October 12, 2013 ماشوف الكود فيه خطأ , فأطرح الكود كامل .. Link to comment
The King Posted October 12, 2013 Author Share Posted October 12, 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