Arthur3989 Posted July 1, 2015 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
KariiiM Posted July 1, 2015 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
Arthur3989 Posted July 1, 2015 Author 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
KariiiM Posted July 2, 2015 Posted July 2, 2015 I mean,i fixed your code,try it if its working or not (use translation if you dont speak english)
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