GAME_OVER!! Posted October 20, 2012 Share Posted October 20, 2012 Hello ! problem I do not know solved Please reform Please fix The Code -- Client Side -- GUIEditor_Edit[1] = guiCreateEdit(74,35,122,30,"",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",getRootElement(),function () local Tag = guiGetText(GUIEditor_Edit[1]) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("SetTag",getLocalPlayer(),Tag) end end ) -- Server Side -- addEvent("SetTag",true) addEventHandler("SetTag",getRootElement(), function (Tag, text) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("[" .. Tag .. "][" .. name .. " ]" .. text, root, 255, 255, 255, true) end end) Link to comment
abu5lf Posted October 20, 2012 Share Posted October 20, 2012 Use: getElementData setElementData Or: setPlayerNametagText Link to comment
GAME_OVER!! Posted October 20, 2012 Author Share Posted October 20, 2012 Use: getElementData setElementData Or: setPlayerNametagText I no not to remember Thanks Link to comment
Renkon Posted October 20, 2012 Share Posted October 20, 2012 You are concatenating text, which is nil, since you haven't passed any other argument after Tag. However, you have text defined too 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