#TeKa Posted December 26, 2016 Share Posted December 26, 2016 (edited) السلام عليكم وين الاخطاء بهذا الكود يطلعلي في الدي بج ERROR: Loading script failed: gang/clientf1.lua:1233: 'end' expected (to close 'if' at line 1227) near 'else' الاكواد bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false else editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end end end) ملحوظة الي يسئل عن سطر 1233 هذا هو السطر الي فوق اكواد Edited December 26, 2016 by The&Smile Link to comment
MR.GRAND Posted December 26, 2016 Share Posted December 26, 2016 1 minute ago, The&Smile said: السلام عليكم وين الاخطاء بهذا الكود يطلعلي في الدي بج ERROR: Loading script failed: gang/clientf1.lua:1233: 'end' expected (to close 'if' at like 1227) near 'else' الاكواد bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false else editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end end end) ملحوظة الي يسئل عن سطر 1233 هذا هو السطر الي فوق اكواد الخطأ واضح مثل عين الشمس, انت حاط 2 else وموحاط انهاء للشرط بال else الأولى ... انت سويتهم اثنينهم وماسويت ايقاف للشرط بعد ماتتحقق من عدم صحة الشرط او صحته, حط الأند بعد else الأولى . Link to comment
#TeKa Posted December 26, 2016 Author Share Posted December 26, 2016 Just now, MR.GRAND said: الخطأ واضح مثل عين الشمس, انت حاط 2 else وموحاط انهاء للشرط بال else الأولى ... انت سويتهم اثنينهم وماسويت ايقاف للشرط بعد ماتتحقق من عدم صحة الشرط او صحته, حط الأند بعد else الأولى . هيك bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false else end editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end end end) ولكن لسا ما اشتغلت Link to comment
MR.GRAND Posted December 26, 2016 Share Posted December 26, 2016 Just now, The&Smile said: هيك bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false else end editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end end end) ولكن لسا ما اشتغلت الإند ارفعها قبل ال else Link to comment
#TeKa Posted December 26, 2016 Author Share Posted December 26, 2016 Just now, MR.GRAND said: الإند ارفعها قبل ال else سويت بس ما راضي bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false end else editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end end end) ياريت انت تصحح الكود و تقلي الخطاء Link to comment
MR.GRAND Posted December 26, 2016 Share Posted December 26, 2016 bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false end --[[ else editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end]] end) Link to comment
#TeKa Posted December 26, 2016 Author Share Posted December 26, 2016 Just now, MR.GRAND said: bindKey("F4", "down", function() if not chgTeamOnDeath then exports["guimessages"]:outputClient("#FF0000[Change-System]#00FF00The Change Team Start After You Dead .!", 255, 255, 255, true) chgTeamOnDeath = true else exports["guimessages"]:outputClient("#FF0000[Change-System]#00ff00The Change Team is Cancel .!", 255, 0, 0, true) chgTeamOnDeath = false end --[[ else editBox.new() setPosition(x*601,y*364,x*213,y*41) color = {79,86,94,160} font = dxCreateFont("gfx/sans-pro-regular.ttf", 20) text = loadLoginFromXML() visible = true onInput = function() color = {87, 95, 104, 160} end]] end) شكرا يا مستر جراند يحقلك كلمة مستر 1 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