#BrosS Posted May 8, 2017 Share Posted May 8, 2017 48 minutes ago, KinG_Himoo12 said: برضو فيه مشكلة ERROR: Loading script failed: c.lua:66:'=' expected near 'if' وينه السطر ذا Link to comment
Doffy Posted May 8, 2017 Author Share Posted May 8, 2017 2 hours ago, #BrosS said: وينه السطر ذا فلمود عندي @_@ Link to comment
iMr.WiFi..! Posted May 8, 2017 Share Posted May 8, 2017 -- Client addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then local rankstake = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )GUIEditor.gridlist[1] if rankstake ~= "" then triggerServerEvent("lv1", localPlayer,rankstake) end end end ) --Server addEvent("lv1",true) addEventHandler("lv1",root, function(rankstake) local acc1 = getPlayerAccount(source) if isGuestAccount(acc1) then return outputChatBox("يجب عليك تسجيل",source,0,255,0,true) end acc2 = getAccountName(acc1) if not isObjectInACLGroup ("user."..acc2,aclGetGroup (rankstake)) then aclGroupAddObject (aclGetGroup(rankstake), "user."..acc2) outputChatBox("تم اخذ رتبة جديدة",source,0,255,0,true) playSoundFrontEnd(source,20) else outputChatBox("لديك هاذي رتبة ",source,255,0,0,true) end end ) Link to comment
MR.StoRm Posted May 8, 2017 Share Posted May 8, 2017 4 hours ago, KinG_Himoo12 said: برضو فيه مشكلة ERROR: Loading script failed: c.lua:66:'=' expected near 'if' ما في سطر 66 -__-" Link to comment
Doffy Posted May 8, 2017 Author Share Posted May 8, 2017 3 hours ago, MR.StoRm said: ما في سطر 66 -__-" قلتلكم السطر 66 عندي فلمود نفسه -__- Link to comment
MR.StoRm Posted May 8, 2017 Share Posted May 8, 2017 30 minutes ago, KinG_Himoo12 said: قلتلكم السطر 66 عندي فلمود نفسه -__- طيب حط اكوادك كاملة .. Link to comment
Doffy Posted May 8, 2017 Author Share Posted May 8, 2017 2 hours ago, MR.StoRm said: طيب حط اكوادك كاملة .. كذا بحطها معي بقيت المود Link to comment
iMr.WiFi..! Posted May 9, 2017 Share Posted May 9, 2017 14 hours ago, KinG_Himoo12 said: كذا بحطها معي بقيت المود جربت الكود حقي ؟ Link to comment
Doffy Posted May 9, 2017 Author Share Posted May 9, 2017 2 hours ago, iMr.WiFi..! said: جربت الكود حقي ؟ موب شغال @_@ Link to comment
#STZ Posted May 9, 2017 Share Posted May 9, 2017 مود الرتب عندك بالجداول ؟ وفي جدول في اول المود ؟؟ في الكلاينت ؟ لو هو حق برستيج ماراح ينفع تسوي لكل رتبة كذا راح يكون حجم ملف كبير و صعب لو في جدول اصبر ارجع من الدوام اسويه لك Link to comment
Dr.Marco Posted May 9, 2017 Share Posted May 9, 2017 اخوي الغلط بسطر 66 جيب كود كامل عشان نساعدك Link to comment
Doffy Posted May 10, 2017 Author Share Posted May 10, 2017 20 hours ago, MR.NaiF-MTA said: مود الرتب عندك بالجداول ؟ وفي جدول في اول المود ؟؟ في الكلاينت ؟ لو هو حق برستيج ماراح ينفع تسوي لكل رتبة كذا راح يكون حجم ملف كبير و صعب لو في جدول اصبر ارجع من الدوام اسويه لك يب فيه جدول بس المود موب حق برستيج من صنعي Link to comment
Doffy Posted May 12, 2017 Author Share Posted May 12, 2017 7 hours ago, MR.NaiF-MTA said: سويت المود كله و دي لا ؟ لا سويته كله بس ماني عارف اظبط الداتا يا خوان السطر 66 هذا هو addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then local rankstake = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )GUIEditor.gridlist[1] if rankstake ~= "" then -- هذا هو السطر 66 triggerServerEvent("lv1", localPlayer,rankstake) end end end ) Link to comment
iMr.WiFi..! Posted May 12, 2017 Share Posted May 12, 2017 addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then local rankstake = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if rankstake ~= "" then -- هذا هو السطر 66 triggerServerEvent("lv1", localPlayer,rankstake) end end end ) Link to comment
Master_MTA Posted May 12, 2017 Share Posted May 12, 2017 (edited) 1 hour ago, iMr.WiFi..! said: addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then local rankstake = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if rankstake ~= "" then -- هذا هو السطر 66 triggerServerEvent("lv1", localPlayer,rankstake) end end end ) what is that? addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then local rankstake = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then -- هذا هو السطر 66 triggerServerEvent("lv1", localPlayer,rankstake) else outputChatBox('حدد الرتبة اولا') end end end ) بالتوفيق Edited May 12, 2017 by Master_MTA Link to comment
Adham Posted May 12, 2017 Share Posted May 12, 2017 (edited) 3 hours ago, Master_MTA said: what is that? addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then local rankstake = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then -- هذا هو السطر 66 triggerServerEvent("lv1", localPlayer,rankstake) else outputChatBox('حدد الرتبة اولا') end end end ) بالتوفيق وش الفرق الفوق بينك و بين الأخ واي فاي ؟ ممكن يسويها كدأ وم في شيء addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == GUIEditor.button[2] then local txt = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if txt == "" then return end triggerServerEvent ( "add", localPlayer, txt ) end end ) Edited May 12, 2017 by Deativated Link to comment
Doffy Posted May 12, 2017 Author Share Posted May 12, 2017 اخر شي في اللوحة بدي اول ما اللاعب يجي يشتري رتبة جديدة تنسحب منه كل الرتب الي معه لان اللاعب ممكن يترك رتبة ورائه ويروح يشتري الي بعدها فا بدي اول ما يشتري رتبة تنسحب منه كل الرتب الي معه Link to comment
MR.StoRm Posted May 12, 2017 Share Posted May 12, 2017 On ١٧/٢/٢٠١٧ at 17:17, Deativated said: "onClientGUIClick" guiGridListSetItemText guiGridListGetItemText getPlayerAccount isGuestAccount isObjectInACLGroup aclGetGroup aclGroupRemoveObject لعبة أفادك ~ Link to comment
Dr.Marco Posted May 12, 2017 Share Posted May 12, 2017 متال بسيط يقدر يفيدك xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("انت لم تسجل بالسيرفر",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("لا يمكنك اختيار الرتبه لانه فعلا معك",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Admin-EX")) then return outputChatBox("انت مخآلف لايمكنك الحصول على رتبه",source,238,158,73,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then removeGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("مبروك لقد حصلت على الرتبه "..Name,source,238,158,73,true); else outputChatBox("عدد ساعاتك غير كافيه",source,238,158,73,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Console-SuperModerator" and g ~= "Console-Home" and g ~= "Console-Moderator" and g ~= "Managers-Console" and g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end Link to comment
Doffy Posted May 13, 2017 Author Share Posted May 13, 2017 9 hours ago, Dr.Marco said: متال بسيط يقدر يفيدك xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("انت لم تسجل بالسيرفر",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("لا يمكنك اختيار الرتبه لانه فعلا معك",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Admin-EX")) then return outputChatBox("انت مخآلف لايمكنك الحصول على رتبه",source,238,158,73,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then removeGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("مبروك لقد حصلت على الرتبه "..Name,source,238,158,73,true); else outputChatBox("عدد ساعاتك غير كافيه",source,238,158,73,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Console-SuperModerator" and g ~= "Console-Home" and g ~= "Console-Moderator" and g ~= "Managers-Console" and g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end شكرا يا اخوي شكرا لكم كلكم تمام كل شي اشتغل Link to comment
Doffy Posted May 13, 2017 Author Share Posted May 13, 2017 10 hours ago, Dr.Marco said: متال بسيط يقدر يفيدك xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("انت لم تسجل بالسيرفر",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("لا يمكنك اختيار الرتبه لانه فعلا معك",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Admin-EX")) then return outputChatBox("انت مخآلف لايمكنك الحصول على رتبه",source,238,158,73,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then removeGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("مبروك لقد حصلت على الرتبه "..Name,source,238,158,73,true); else outputChatBox("عدد ساعاتك غير كافيه",source,238,158,73,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Console-SuperModerator" and g ~= "Console-Home" and g ~= "Console-Moderator" and g ~= "Managers-Console" and g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end بس اخر مشكلة انو جربت زي ما انت قلت الي اول ما الواحد يجي يشتري رتبة تنحذف منه القديمة ما نفع Link to comment
iMr.WiFi..! Posted May 13, 2017 Share Posted May 13, 2017 2 hours ago, #Himoo said: بس اخر مشكلة انو جربت زي ما انت قلت الي اول ما الواحد يجي يشتري رتبة تنحذف منه القديمة ما نفع function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Console-SuperModerator" and g ~= "Console-Home" and g ~= "Console-Moderator" and g ~= "Managers-Console" and g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end حطها بأول سطر بسيرفر ثم لما ياخذ رتبة سوي له , removeGroups ( source ) Link to comment
Doffy Posted May 13, 2017 Author Share Posted May 13, 2017 1 hour ago, iMr.WiFi..! said: function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Console-SuperModerator" and g ~= "Console-Home" and g ~= "Console-Moderator" and g ~= "Managers-Console" and g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end endend حطها بأول سطر بسيرفر ثم لما ياخذ رتبة سوي له , removeGroups ( source ) ما اشتغل 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