Soapbosnia Posted September 14, 2017 Share Posted September 14, 2017 Hello dear mta community,Please help me, i made a login panel with gui editor and now it says this error "Unexpected symbol near "*" line:48 Here is the code,please help guys GUIEditor = { button = {}, edit = {}, checkbox = {}, label = {} } GUIEditor.button[1] = guiCreateButton(577, 515, 137, 52, "Login", false) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(729, 520, 143, 41, "Register an Account", false) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(439, 521, 123, 40, "Play as Guest", false) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(613, 369, 82, 18, "Account Name", false) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(602, 421, 103, 15, "Account Password", false) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(573, 481, 146, 17, "Remember Account Name", false) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.checkbox[1] = guiCreateCheckBox(552, 481, 15, 14, "", false, false) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.edit[1] = guiCreateEdit(546, 387, 204, 28, "", false) guiSetAlpha(GUIEditor.edit[1], 0.82) GUIEditor.edit[2] = guiCreateEdit(546, 440, 204, 28, "", false) guiSetAlpha(GUIEditor.edit[2], 0.82) addEventHandler(*onClientGUIClick*,GUIEditor.button[1]), function ( ) local User = guiGuiText ( GUIEditor.edit[1] ) local Password = guiGetText ( Edit_Password ) if User and password then triggerServerEvent(*onPlayerTryingToLogin*,localPlayer,User,Password) end end,false ) addEvent (onPlayerTryingToLogin*) addEventHandler (*onPlayerTryingToLogin*, source, Login) Link to comment
Ahmed Ly Posted September 15, 2017 Share Posted September 15, 2017 GUIEditor = { button = {}, edit = {}, checkbox = {}, label = {} } GUIEditor.button[1] = guiCreateButton(577, 515, 137, 52, "Login", false) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(729, 520, 143, 41, "Register an Account", false) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(439, 521, 123, 40, "Play as Guest", false) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(613, 369, 82, 18, "Account Name", false) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(602, 421, 103, 15, "Account Password", false) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(573, 481, 146, 17, "Remember Account Name", false) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.checkbox[1] = guiCreateCheckBox(552, 481, 15, 14, "", false, false) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.edit[1] = guiCreateEdit(546, 387, 204, 28, "", false) guiSetAlpha(GUIEditor.edit[1], 0.82) GUIEditor.edit[2] = guiCreateEdit(546, 440, 204, 28, "", false) guiSetAlpha(GUIEditor.edit[2], 0.82) addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local User = guiGuiText (GUIEditor.edit[1]) local Password = guiGetText (GUIEditor.edit[2]) if User ~= "" or password ~= "" then triggerServerEvent("onPlayerTryingToLogin",localPlayer,User,Password) end 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