Jump to content

label help


K4stic

Recommended Posts

function menushow () 
local getoccup = getElementData( source, "Occupation" ) 
visibleornot =guiGetVisible (theWindow2) 
if (Visibleornot == true)  then 
guiSetVisible (theWindow2, false) 
showCursor (false) 
guiSetText(label,"",true) 
end 
if (Visibleornot == false)  then 
guiSetVisible (theWindow2, true) 
showCursor (true) 
guiSetText(label,"Your Correct Occupation: "..getoccup,false) 
end 
end 

error line 12

and warning at line 2

Link to comment
function menushow () 
visibleornot = guiGetVisible (theWindow2) 
if (Visibleornot == true)  then 
guiSetVisible (theWindow2, false) 
showCursor (false) 
guiSetText(label,"",true) 
elseif (Visibleornot == false)  then 
guiSetVisible (theWindow2, true) 
showCursor (true) 
local getoccup = getElementData( getLocalPlayer(), "Occupation" ) 
guiSetText(label,"Your Correct Occupation: "..getoccup,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...