кιηg-αвα∂у Posted December 24, 2012 Share Posted December 24, 2012 (edited) السلام عليكم وش الخطأ في الكود جربته على اكثر من لوحة ماضبط Client Side bindKey("f3","down", function() triggerServerEvent("checkAdmin",localPlayer) end ) addEvent("showingWindow",true) addEventHandler("showingWindow",localPlayer, function() if(guiGetVisible(GUIEditor_Window[1])==false)then guiSetVisible(GUIEditor_Window[1],true) showCursor(true) else guiSetVisible(GUIEditor_Window[1],false) showCursor(true) end end ) Server Side addEvent("checkAdmin",true) addEventHandler("checkAdmin",root, function() local acc=getPlayerAccount(client) if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin")) triggerClientEvent(client,"showingWindow",client) end end ) Meta Xml debugscript 3 [2012-12-23 23:36:27] ERROR: Client triggered serverside event checkAdmin, but event is not added serverside [2012-12-23 23:35:42] SCRIPT ERROR: Police_panel\Server.lua:6: ')' expected (to close '(' at line 5) near 'triggerClientEvent' [2012-12-23 23:35:42] WARNING: Loading script failed: Police_panel\Server.lua:6: ')' expected (to close '(' at line 5) near 'triggerClientEvent' Edited December 24, 2012 by Guest Link to comment
Quited Posted December 24, 2012 Share Posted December 24, 2012 قصدك اذا انت تبي تغير زر لوحة الادمنية تقدر تغيره من الاعدادات binds---Admin panel --bindkey Link to comment
кιηg-αвα∂у Posted December 24, 2012 Author Share Posted December 24, 2012 قصدك اذا انت تبي تغير زر لوحة الادمنية تقدر تغيره من الاعدادات binds---Admin panel --bindkey لا قصدي زر احطه للوحة مايتفتح الى للأدمن Link to comment
TAPL Posted December 24, 2012 Share Posted December 24, 2012 في ملف السيرفر سطر 5 وقوس then ناقص كلمة if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin")) التعديل if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin"))) then Link to comment
кιηg-αвα∂у Posted December 24, 2012 Author Share Posted December 24, 2012 في ملف السيرفر سطر 5وقوس then ناقص كلمة if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin")) التعديل if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin"))) then مشكور والله يعطيك العافية ضبط معي وشغال 100% Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 setTimer( guiSetText, 1000, 0, labelName, ' ') 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