Jump to content

تصحيح كود


Recommended Posts

السلام عليكم 

يرجي تصحيح الكود

elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
       if velocity == false then
local Velocity = true
     	outputChatBox("تم فتح خاصية السرعة ")
else
  local Velocity = false
 outputChatBox("تم فتح خاصية السرعة ")
end
      end
 end)
binkey("w","down,
          ()function
if Velocity == true then
       local vx, vy, vz =
getElementVelocity(localplayer, vx+1, vy+1, vz
else
end
end

 

Edited by SAM!!
Link to comment
1 hour ago, SAM!! said:

السلام عليكم 

يرجي تصحيح الكود


elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
       if velocity == false then
local Velocity = true
     	outputChatBox("تم فتح خاصية السرعة ")
else
  local Velocity = false
 outputChatBox("تم فتح خاصية السرعة ")
end
      end
 end)
binkey("w","down,
          ()function
if Velocity == true then
       local vx, vy, vz =
getElementVelocity(localplayer, vx+1, vy+1, vz
else
end
end

 

مدري وش التخبيص ذا صراحه

بس خذ جرب

elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
if velocity == false then
local Velocity = true
outputChatBox("تم فتح خاصية السرعة ")
else
local Velocity = false
outputChatBox("تم فتح خاصية السرعة ")
end
end
end )
binkey("w", "down",
function()
if Velocity == true then
local vx, vy, vz = getElementVelocity( localplayer, vx+1, vy+1, vz )
end
end

 

Link to comment
elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
if velocity == false then
	velocity = true
    outputChatBox("تم فتح خاصية السرعة ")
else
	velocity = false
	outputChatBox("تم فتح خاصية السرعة ")
end
end
end)

bindKey("w","down",
	function ()
		if velocity == true then
			local vx, vy, vz = getElementVelocity(localPlayer, vx+1, vy+1, vz)
		end
	end
)

 

Link to comment
elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
if velocity == false then
	velocity = true
    outputChatBox("تم فتح خاصية السرعة ")
else
	velocity = false
	outputChatBox("تم فتح خاصية السرعة ")
end
end
end)

bindKey("w","down",
	function ()
		if velocity == true then
			local vx, vy, vz = getElementVelocity(localPlayer, vx+1, vy+1, vz)
		end
	end
)

                  elseif source == btn.health then ----------مشكلة بالسطر دا

مازالت المشكلة

N3xT

رسالة الخطـأ

 

<eof> expected near elseif

Link to comment
3 minutes ago, SAM!! said:

elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
if velocity == false then
	velocity = true
    outputChatBox("تم فتح خاصية السرعة ")
else
	velocity = false
	outputChatBox("تم فتح خاصية السرعة ")
end
end
end)

bindKey("w","down",
	function ()
		if velocity == true then
			local vx, vy, vz = getElementVelocity(localPlayer, vx+1, vy+1, vz)
		end
	end
)

                  elseif source == btn.health then ----------مشكلة بالسطر دا

مازالت المشكلة

N3xT

رسالة الخطـأ

 

<eof> expected near elseif

حط الأكواد كامله

Link to comment

+Source|>

elseif ( source == btn.soon ) then 
playSound("open.wav")
guiSetEnabled (btn.soon ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
if velocity == false then
	velocity = true
    outputChatBox("تم فتح خاصية السرعة ")
else
	velocity = false
	outputChatBox("تم فتح خاصية السرعة ")
end
end
end)

bindKey("w","down",
	function ()
		if velocity == true then
			local vx, vy, vz = getElementVelocity(localPlayer, vx+1, vy+1, vz)
		end
	end
)

                  elseif source == btn.health then 
playSound("open.wav")
guiSetEnabled (btn.health ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.health ,true)	
                   triggerServerEvent("Healt",getLocalPlayer()) 

                 elseif source == btn.armor then 
playSound("open.wav")
guiSetEnabled (btn.armor ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.armor ,true)
               triggerServerEvent("Armor",getLocalPlayer()) 
end
end
)

 

Link to comment
 addEventHandler('onClientGUIClick',root, function()
	if (source == btn.soon) then
		playSound("open.wav")
			guiSetEnabled (btn.soon ,false)
		setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true)
		if velocity == false then
	velocity = true
    outputChatBox("تم فتح خاصية السرعة ")
else
	velocity = false
	outputChatBox("تم فتح خاصية السرعة ")
	end
		end
	end
)

bindKey("w","down",
	function ()
		if velocity == true then
			local vx, vy, vz = getElementVelocity(localPlayer, vx+1, vy+1, vz)
		end
	end
)

 

Link to comment

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...