Jump to content

بخصوص ال End


#TeKa

Recommended Posts

Posted (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 by The&Smile


 



Posted
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

الأولى .

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted
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)

ولكن لسا ما اشتغلت 


 



Posted
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

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted
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)

ياريت انت تصحح الكود و تقلي الخطاء 


 



Posted
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)

 

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted
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)

 

شكرا يا مستر جراند يحقلك كلمة مستر :x:x

  • Like 1


 



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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...