SAM!! Posted June 21, 2018 Share Posted June 21, 2018 (edited) السلام عليكم يرجي تصحيح الكود 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 June 21, 2018 by SAM!! Link to comment
+Source|> Posted June 21, 2018 Share Posted June 21, 2018 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
SAM!! Posted June 21, 2018 Author Share Posted June 21, 2018 +Source|> يقول قي مشكلة غير متوقعة والمود كلة وقف! Link to comment
N3xT Posted June 21, 2018 Share Posted June 21, 2018 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
SAM!! Posted June 21, 2018 Author Share Posted June 21, 2018 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|> Posted June 21, 2018 Share Posted June 21, 2018 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
SAM!! Posted June 21, 2018 Author Share Posted June 21, 2018 +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
N3xT Posted June 21, 2018 Share Posted June 21, 2018 اذا ذي الاكواد كاملة فطبعاً ما راح يشتغل معاك Link to comment
^iiEcoo'x_) Posted June 21, 2018 Share Posted June 21, 2018 إنتبه لسطر ٢٣ , ٢٩ , ما في سورس بالفنكشن . Link to comment
SAM!! Posted June 21, 2018 Author Share Posted June 21, 2018 #_iMr,[E]coo معلش ممكن تصلحة لي لاني ماعرف كيف addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) ذاا؟ Link to comment
Mr.Mostafa Posted June 21, 2018 Share Posted June 21, 2018 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
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