Bilal135 Posted September 4, 2015 Share Posted September 4, 2015 My GUI doesn't appear while it should. GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(323, 178, 709, 429, "FGF Rules", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(620, 386, 73, 28, "Close", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(12, 35, 681, 341, "Rules \n \nRule 1 Follow all public communication standards. \nRule 1.1 No speaking non-english in public chat. \nRule 1.2 No posting junk in public chat. \n \nFollowing all public communication standards is a main and most broken rule. Any non-english language should not be spoken into the global chat. Posting junk in public chat refers to non-sense posts, or which may make the chat look ugly, for example ajjajajaja or something slang. \n \nRule 2 No hacking or abusing. \nRule 2.1 No hacking. \nRule 2.2 No abusing. \nRule 2.3 No abusing no dm to disturb players. \n \nAny kind of trainers or illegal hacking tricks or hacking programs should not be used for own \nbenefits. Any FGF or MTA bug should not be abused or may lead to a ban or kick. Abusing no dm refers when you are using no dm just to disturb or irritate someone. \n \nRule 3 No annoying or trolling. \nRule 3.1 No annoying. \nRule 3.2 No trolling. \nRule 3.3 No provoking. \n \nAny annoying, trolling, or provoking behavior to any staff member or player will not be tolerated and may lead to long-time mutes. \n \nRule 4 No advertising other servers. \n \nRule 5 No disturbing neutral staff. \n \nDisturbing neutral staff means staying near them, hijacking their vehicles, or killing them without any reason. Please be noted that when any staff member is not shooting you, you must not shoot him, otherwise this rule applies. (Ban/kick) \n \nRule 6 No leeching from the server. \n \nLeeching from the server refers to any activity unbeneficial for FGF and its players, may lead to long duration bans and accounts being deleted.", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) end ) Error: 13 line: Unfinished string near ""Rules' Link to comment
1LoL1 Posted September 4, 2015 Share Posted September 4, 2015 Try this: function blablabla () GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} Text = [[ Rule 1 Follow all public communication standards. Rule 1.1 No speaking non-english in public chat. Rule 1.2 No posting junk in public chat. Following all public communication standards is a main and most broken rule. Any non-english language should not be spoken into the global chat. Posting junk in public chat refers to non-sense posts, or which may make the chat look ugly, for example ajjajajaja or something slang. Rule 2 No hacking or abusing. Rule 2.1 No hacking. Rule 2.2 No abusing. Rule 2.3 No abusing no dm to disturb players. Any kind of trainers or illegal hacking tricks or hacking programs should not be used for own benefits. Any FGF or MTA bug should not be abused or may lead to a ban or kick. Abusing no dm refers when you are using no dm just to disturb or irritate someone. Rule 3 No annoying or trolling. Rule 3.1 No annoying. Rule 3.2 No trolling. Rule 3.3 No provoking. Any annoying, trolling, or provoking behavior to any staff member or player will not be tolerated and may lead to long-time mutes. Rule 4 No advertising other servers. Rule 5 No disturbing neutral staff. Disturbing neutral staff means staying near them, hijacking their vehicles, or killing them without any reason. Please be noted that when any staff member is not shooting you, you must not shoot him, otherwise this rule applies. (Ban/kick) Rule 6 No leeching from the server. nLeeching from the server refers to any activity unbeneficial for FGF and its players, may lead to long duration bans and accounts being deleted. ]] GUIEditor_Window[1] = guiCreateWindow(323,178,709,429, "FGF Rules", false) GUIEditor_Memo[1] = guiCreateMemo(12,35,681,341,Text,false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(620,386,73,28,"Close",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick", GUIEditor_Button[1], closeForm) showCursor(true) guiSetInputEnabled(true) end addEvent("onClientResourceStart", true) addEventHandler("onClientResourceStart", getRootElement(), blablabla) function closeForm (button, state) if state == "up" then showCursor(false) guiSetInputEnabled(false) guiSetVisible(GUIEditor_Window[1], false) 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