Arthur3989 Posted July 1, 2015 Share Posted July 1, 2015 help me on this if problem? 0 errors .... and no function SenhaDaBase = "lok32" ----------------------------------------------- Painel da Senha da Base ---------------------------------------- function Senhadoportaobope() PassBope = guiCreateWindow(308, 52, 261, 94, "Senha da Bope", false) guiWindowSetSizable(PassBope, false) Senha = guiCreateEdit(52, 29, 160, 21, "", false, PassBope) OKbtn = guiCreateButton(30, 63, 71, 21, "OK", false, PassBope) guiSetProperty(OKbtn, "NormalTextColour", "FF17FF00") cancelarbtn = guiCreateButton(161, 63, 71, 21, "Cancelar", false, PassBope) guiSetProperty(cancelarbtn, "NormalTextColour", "FFFF0000") showCursor(true) addEventHandler("onClientGUIClick", OKbtn, testedesenha, false) addEventHandler("onClientGUIClick", cancelarbtn, fecharsenha, false) end addEvent("senhadabase", true) addEventHandler("senhadabase", getRootElement(), Senhadoportaobope) addCommandHandler("bope", Senhadoportaobope) ------------------------------------ Verificando senha -------------------------------- function testedesenha() local senhaatual = getGuiText(Senha) if (SenhaDaBase == senhaatual) then ------- <<<<<<<<<< ERROR triggerServerEvent ( "baseloged", getLocalPlayer() ) showCursor(false) end end end Link to comment
KariiiM Posted July 1, 2015 Share Posted July 1, 2015 Try this and tell me if its working or not SenhaDaBase = "lok32" ----------------------------------------------- Painel da Senha da Base ---------------------------------------- function Senhadoportaobope() PassBope = guiCreateWindow(308, 52, 261, 94, "Senha da Bope", false) guiWindowSetSizable(PassBope, false) Senha = guiCreateEdit(52, 29, 160, 21, "", false, PassBope) OKbtn = guiCreateButton(30, 63, 71, 21, "OK", false, PassBope) guiSetProperty(OKbtn, "NormalTextColour", "FF17FF00") cancelarbtn = guiCreateButton(161, 63, 71, 21, "Cancelar", false, PassBope) guiSetProperty(cancelarbtn, "NormalTextColour", "FFFF0000") showCursor(true) addEventHandler("onClientGUIClick", OKbtn, testedesenha, false) addEventHandler("onClientGUIClick", cancelarbtn, fecharsenha, false) end addEvent("senhadabase", true) addEventHandler("senhadabase", getRootElement(), Senhadoportaobope) addCommandHandler("bope", Senhadoportaobope) ------------------------------------ Verificando senha -------------------------------- function testedesenha() local senhaatual = getGuiText(Senha) if (SenhaDaBase == senhaatual) then ------- <<<<<<<<<< ERROR triggerServerEvent ( "baseloged", getLocalPlayer() ) showCursor(false) end end Link to comment
Arthur3989 Posted July 1, 2015 Author Share Posted July 1, 2015 I do not speak English then use the translator google just not given to entendero you said ... I am the creator of this script but I am still new in this so use the wiki + youtube videos Link to comment
KariiiM Posted July 2, 2015 Share Posted July 2, 2015 I mean,i fixed your code,try it if its working or not (use translation if you dont speak english) 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