Jump to content

Error IF?


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...