Jump to content

De ce erroarea asta?


Recommended Posts

Daca mil poti face sa mearga pentru amandoua te rog.

local warningBox, warningMessage, warningOk = nil 
function LoginScreen_showWarningMessage( message ) 
    if (isElement(warningBox)) then 
        destroyElement(warningBox) 
    end 
    local x, y = guiGetScreenSize() 
    warningBox = guiCreateStaticImage( x*.5-150,0, 400, 190, "poze/poza1.png", false ) 
    guiWindowSetSizable( warningBox, false ) 
    warningMessage = guiCreateLabel( 120, 26, 220, 90, message, false, warningBox ) 
    guiLabelSetHorizontalAlign( warningMessage, "center", true ) 
    guiLabelSetVerticalAlign( warningMessage, "center" ) 
    setTimer(guiSetVisible, 15000, 1,warningBox,false) 
    guiBringToFront( warningBox ) 
    local sound = playSound ("poze/sunet.mp3")  
    setSoundVolume (sound,0.5) 
end 
addEventHandler("accounts:error:window", getRootElement(), LoginScreen_showWarningMessage) 

Link to comment
Daca mil poti face sa mearga pentru amandoua te rog.
[code=text]local warningBox, warningMessage, warningOk = nil 
function LoginScreen_showWarningMessage( message ) 
    if (isElement(warningBox)) then 
        destroyElement(warningBox) 
    end 
    local x, y = guiGetScreenSize() 
    warningBox = guiCreateStaticImage( x*.5-150,0, 400, 190, "poze/poza1.png", false ) 
    guiWindowSetSizable( warningBox, false ) 
    warningMessage = guiCreateLabel( 120, 26, 220, 90, message, false, warningBox ) 
    guiLabelSetHorizontalAlign( warningMessage, "center", true ) 
    guiLabelSetVerticalAlign( warningMessage, "center" ) 
    setTimer(guiSetVisible, 15000, 1,warningBox,false) 
    guiBringToFront( warningBox ) 
    local sound = playSound ("poze/sunet.mp3")  
    setSoundVolume (sound,0.5) 
end 
addEventHandler("accounts:error:window", getRootElement(), LoginScreen_showWarningMessage)[/code][/quote] 

Nu vad nimic in neregula cu scriptul posteaza ce scrie in meta .

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...