#TeKa Posted December 14, 2016 Share Posted December 14, 2016 (edited) السلام عليكم دلوقتي المشكلة في ال end و عملت كل شييء ب ايدي بس ما راضي يشتغل الكودات guiSetFont(Lareulse, "default-bold-small") guiMoveElementToCenter(mainWindow) guiLabelSetColor(Lareulse, 251, 201, 3) guiSetAlpha(Sing12, 1) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 end xmlUnloadFile(xmlFile) else xmlFileHandler(true) end addEventHandler("onRequestDisplayPanel",getRootElement(),logoutHandler) end و بيطلعلي في الدي بج debugscript 3 ERROR: Loading script failed: The&Smile/clientlogin.lua:7772: <eof> expected near 'end' عشان مفيش حد يسئلي هات اكواد سطر 7772 الاكواد الي فوق دي هيا بتاعت 7772 Edited December 14, 2016 by The&Smile Link to comment
coNolel Posted December 14, 2016 Share Posted December 14, 2016 السلام عليكم .د بالنسبة لend ماكان لازم تستعملها لانك ما فتحت فنكشن والبتالي ببساطة احذف end Link to comment
#TeKa Posted December 14, 2016 Author Share Posted December 14, 2016 طب دلوقتي بيقولي Just now, coNolel said: السلام عليكم .د بالنسبة لend ماكان لازم تستعملها لانك ما فتحت فنكشن والبتالي ببساطة احذف end طيب حذفتها بس شوف بيقول ايش في الدي بج ERROR: Loading script failed: The&Smile/clientlogin.lua:7775: <eof> expected near 'else' Link to comment
coNolel Posted December 14, 2016 Share Posted December 14, 2016 اي else يعمي هات الكود كامل انت تعطينا نصفه Link to comment
#TeKa Posted December 14, 2016 Author Share Posted December 14, 2016 Just now, coNolel said: اي else يعمي هات الكود كامل انت تعطينا نصفه اهو الكود ب لوحة التسجيل function randomimages() return unpack(loginImages[math.random(#loginImages)]) end local randomi = randomimages() local customFontH = guiCreateFont("QTBodiniItalic.ttf", 15) local rx, ry = guiGetScreenSize() local width, height = 1500, 1000 local X = (rx/2) - (width/2) local Y = (ry/2) - (height/2) mainWindow = guiCreateStaticImage(250, 50, 851, 659, "Login/login_window.png", false) guiSetAlpha(Login, 0.70) userimg = guiCreateStaticImage(260, 180, 40, 30, "userimg.png", false, mainWindow) passimg = guiCreateStaticImage(260, 180, 40, 30, "passimg.png", false, mainWindow) editusername = guiCreateStaticImage(260, 180, 310, 50, "Login/editusername.png", false, mainWindow) editpassword = guiCreateStaticImage(260, 278, 310, 50, "Login/editpassword.png", false, mainWindow) usbnos = guiCreateStaticImage(420, 70, 1.5, 458, "S1.png", false, mainWindow) guiSetAlpha(editPassword, 0.55) us1bnos = guiCreateStaticImage(0, 10, 558, 1.5, "S1.png", false, mainWindow) guiSetAlpha(editPassword, 0.55) editUsername = guiCreateEdit(295, 180, 276, 50,"",false,mainWindow) guiSetAlpha(editUsername, 0.45) guiEditSetMaxLength(editUsername,90) guiSetProperty(editUsername, "NormalTextColour", "#000000") editPassword = guiCreateEdit(295, 278, 276, 50,"",false,mainWindow) guiSetAlpha(editPassword, 0.45) guiEditSetMaxLength(editPassword,90) guiSetProperty(editPassword, "NormalTextColour", "#000000") guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(184, 435, 500, 30,"Click Sign In To Create Account",false,mainWindow)--not guiLabelSetColor(lblUsername,255, 255, 255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) guiSetFont(lblUsername, customFontH) ald = guiCreateLabel(74, 148, 500, 30,"UserName !",false,mainWindow) guiLabelSetVerticalAlign(ald,"center") guiLabelSetHorizontalAlign(ald,"center",false) guiSetFont(ald, customFontH) asmaf = guiCreateLabel(79, 248, 500, 30,"PassWord !",false,mainWindow) guiLabelSetVerticalAlign(asmaf,"center") guiLabelSetHorizontalAlign(asmaf,"center",false) guiSetFont(asmaf, customFontH) lblPassword = guiCreateLabel(180, 339, 505, 38,"Visit Us On @Www.Gta-Tw.com",false,mainWindow)--not guiLabelSetColor(lblPassword,255, 255, 255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) guiSetFont(lblPassword, customFontH) lblone = guiCreateLabel(171, 72, 500, 30," Server Managers",false,mainWindow)--not guiLabelSetColor(lblone,255, 255, 255) guiLabelSetVerticalAlign(lblone,"center") guiLabelSetHorizontalAlign(lblone,"center",false) guiSetFont(lblone, customFontH) btnLogin = guiCreateStaticImage(270, 385, 310, 50,"images/login.png",false,mainWindow) guiSetFont(btnLogin,font_0) Loginlabell = guiCreateLabel(67, 10, 30, 17, "", false,btnLogin) btnToggleRegister = guiCreateStaticImage(270, 465, 310, 50,"images/register.png",false,mainWindow) guiSetFont(btnToggleRegister,font_0) Registerlabel = guiCreateLabel(61, 10, 47, 15, "", false,btnToggleRegister) labelreg = guiCreateLabel(320, 20, 252, 128, "Gta-Tw Login Panel", false, mainWindow) guiSetFont(labelreg, customFontH) guiLabelSetColor(labelreg, 255,255,255) guiSetProperty(ShowPass, "NormalTextColour", "FF00FF05") Welcomelabels = guiCreateLabel(227, 531, 598, 28, "Welcome To Gta-Tw Mr/Mrs : ".. getPlayerName(localPlayer), false, mainWindow) guiSetFont(Welcomelabels, customFontH) guiLabelSetColor(Welcomelabels, 255, 255, 255) registerWindow = guiCreateStaticImage(0, 0, 1920, 1200, "Login/"..randomi,false) guiWindowSetSizable(registerWindow,false) welcomereglabel = guiCreateLabel(250, 50, 851, 659, "", false, registerWindow) guiSetFont(welcomereglabel, font_0) re = guiCreateStaticImage(250, 50, 851, 659, "Login/register_window.png", false, registerWindow) usnos = guiCreateStaticImage(425, 0, 5, 758, "S1.png", false, re) imageforeditusername = guiCreateStaticImage(58, 88, 195, 39, "S1.png", false, re) userphotos = guiCreateStaticImage(0, 1, 48, 37, "userimg.png", false, imageforeditusername) editRegistrationUsername = guiCreateEdit(48, 3, 144, 32,"",false,imageforeditusername) guiSetAlpha(editRegistrationUsername, 0.55) editpasswordphoto = guiCreateStaticImage(55, 177, 195, 39, "S1.png", false, re) passphotoimage = guiCreateStaticImage(1, 2, 47, 37, "passimg.png", false, editpasswordphoto) editRegistrationPassword = guiCreateEdit(49, 5, 144, 29,"",false, editpasswordphoto) guiSetAlpha(editRegistrationPassword, 0.55) guiEditSetMasked(editRegistrationPassword,true) password2photo = guiCreateStaticImage(58, 264, 195, 39, "S1.png", false, re) passwordimg2repeat = guiCreateStaticImage(0, 0, 48, 38, "passimg.png", false, password2photo) editRegistrationRepeatPassword = guiCreateEdit(49, 4, 144, 32,"",false,password2photo) guiSetAlpha(editRegistrationRepeatPassword, 0.55) guiEditSetMasked(editRegistrationRepeatPassword,true) usre = guiCreateLabel(88, 55, 146, 34, "Username", false, re) guiSetFont(usre, font_0) passwd = guiCreateLabel(88, 147, 141, 33, "Password", false, re) guiSetFont(passwd, font_0) passre = guiCreateLabel(89, 233, 185, 32, "Re-Password", false, re) guiSetFont(passre, font_0) Welcomelabels = guiCreateLabel(209, 531, 598, 28, "To Register New Account Press Sign Up : ".. getPlayerName(localPlayer), false, re) guiSetFont(Welcomelabels, customFontH) guiLabelSetColor(Welcomelabels, 255, 255, 255) btnConfirmRegistration = guiCreateStaticImage(469, 129, 255, 45,"images/register.png",false,re) guiSetFont(btnConfirmRegistration,font_0) aa = guiCreateLabel(67, 10, 30, 17, "", false,btnConfirmRegistration) btnCancel = guiCreateStaticImage(469, 275, 255, 45,"Login/cancel.png",false,re) guiSetFont(btnCancel,font_0) cancellabell = guiCreateLabel(67, 10, 30, 17, "", false,btnCancel) --guiCreateStaticImage(440,23,300,345,"images/logo.png",false,mainWindow) guiSetFont(Lareulse, "default-bold-small") guiMoveElementToCenter(mainWindow) guiLabelSetColor(Lareulse, 251, 201, 3) guiSetAlpha(Sing12, 1) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 xmlUnloadFile(xmlFile) else xmlFileHandler(true) end addEventHandler("onRequestDisplayPanel",getRootElement(),logoutHandler) end --addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),loginPanel --------------------------------------------------------------------- Link to comment
coNolel Posted December 14, 2016 Share Posted December 14, 2016 متى حطيت if عشان تحط else وافتراضا اذا حطيت التحقق لازم تقفله ب end ثانية يعني الend الاولى حقت التحقق والاند الثانية حقت الفنكشن Link to comment
Abu-Solo Posted December 14, 2016 Share Posted December 14, 2016 12 minutes ago, coNolel said: متى حطيت if عشان تحط else وافتراضا اذا حطيت التحقق لازم تقفله ب end ثانية يعني الend الاولى حقت التحقق والاند الثانية حقت الفنكشن كلام مظبوط لازم اذا سويت حدث او فنكشن او if لازم يكون فيه 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