Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-11-17, 11:06


cayman11







Wiek: 30
Na forum: 4948 dni
Posty: 73



Respekt: 50

Witacje. hmm mo?e kto? pomo?e?
- jak wstawi? w pierwsza zak?adk? zdj?cie o takie:


- i jeszcze jedno jak zrobi? polskie znaki: ?, ?, ? itp.?



i to tak wygl?da:






localPlayer getLocalPlayer()

wnd_window = {}

addEventHandler"onClientResourceStart"getResourceRootElementgetThisResource() ),  
    function ( theResource )
        --outputConsole"wnd_showServerInfo called" )
        --outputConsole" source: ".. tostringsource ) )
        --outputConsole" resourceStarted: ".. tostringtheResource ) )
        if source == getResourceRootElementtheResource then
            --outputConsole" passed if: source == resource" )
            local cmd xmlLoadFile"cmd.xml" )
            local cmd1 xmlNodeGetValuecmd )
            local member xmlLoadFile"member.xml" )
            local member1 xmlNodeGetValuemember )
            local other xmlLoadFile"other.xml" )
            local other1 xmlNodeGetValueother )
            local admin xmlLoadFile"admin.xml" )
            local admin1 xmlNodeGetValueadmin )
            local pyt xmlLoadFile"pyt.xml" )
            local pyt1 xmlNodeGetValuepyt )

            wnd_createcmd1member1other1admin1pyt1 )
        end
    end
)
function wnd_createcmdmemberotheradminpyt )

GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Memo = {}
GUIEditor_Image = {}
GUIEditor_Label = {}
GUIEditor_Button = {}


window guiCreateWindow(200,161,659,380,"Pomoc",false)
background guiCreateStaticImage(0.0200,0.0400,0.9700,0.9400,"images/background.png",true,window)

GUIEditor_Button[1] = guiCreateButton(220,350,200,300,"Zamknij",false,window)

guiSetAlpha(window,1)
guiWindowSetSizable(window,false)

GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0100,0.1000,1.0,0.8050,true,window)
guiSetAlpha(GUIEditor_TabPanel[1],1)

tabcmd guiCreateTab("Regulamin",GUIEditor_TabPanel[1])
guiSetAlpha(tabcmd,1)
GUIEditor_Memo[1] = guiCreateMemo(0.008,0.0185,0.982,0.963,cmd,true,tabcmd)
guiSetAlpha(GUIEditor_Memo[1],1)


GUIEditor_Tab[1] = guiCreateTab("Komendy",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[1],1)
GUIEditor_Memo[2] = guiCreateMemo(0.008,0.0185,0.982,0.963,member,true,GUIEditor_Tab[1])
guiSetAlpha(GUIEditor_Memo[2],1)

GUIEditor_Tab[2] = guiCreateTab("VIP",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[2],1)
GUIEditor_Memo[3] = guiCreateMemo(0.008,0.0185,0.982,0.963,other,true,GUIEditor_Tab[2])
guiSetAlpha(GUIEditor_Memo[3],1)

GUIEditor_Tab[3] = guiCreateTab("Administracja",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[3],1)
GUIEditor_Memo[4] = guiCreateMemo(0.008,0.0185,0.982,0.963,admin,true,GUIEditor_Tab[3])
guiSetAlpha(GUIEditor_Memo[4],1)

GUIEditor_Tab[4] = guiCreateTab("Tips&Tricks",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[3],1)
GUIEditor_Memo[5] = guiCreateMemo(0.008,0.0185,0.982,0.963,pyt,true,GUIEditor_Tab[4])
guiSetAlpha(GUIEditor_Memo[5],1)


guiMemoSetReadOnly(GUIEditor_Memo[1],true)
guiMemoSetReadOnly(GUIEditor_Memo[2],true)
guiMemoSetReadOnly(GUIEditor_Memo[3],true)
guiMemoSetReadOnly(GUIEditor_Memo[4],true)
guiMemoSetReadOnly(GUIEditor_Memo[5],true)



end


-- BIND THE TOUCH F9

function onresourceStart ()
  bindKey ("F9""down"showUserPanel)
  guiSetVisible (windowfalse)
end
addEventHandler("onClientResourceStart"getResourceRootElement(getThisResource()), onresourceStart)




function showUserPanel ()
getVisible guiGetVisible (window)
playerName getPlayerName getLocalPlayer() )
playSound("open.wav")
if (getVisible == truethen
    guiSetVisible (windowfalse)
    showCursor (false)
end
addEventHandler"onClientGUIClick"GUIEditor_Button[1], showUserPanel )
if (getVisible == falsethen
    guiSetVisible (windowtrue)
    showCursor (true)
    addEventHandler"onClientGUIClick"playerGridListsetGUI )
      end
end



za pomoc :piwo: :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-17, 13:53


Brzysiek

Skrypter pralek






Wiek: 27
Na forum: 5199 dni
Posty: 488
Nick w MP: Brzysiek

Piwa: 1034

Respekt: 360
Respekt: 360Respekt: 360Respekt: 360Respekt: 360

Cytat:

- jak wstawi? w pierwsza zak?adk? zdj?cie o takie:

http://wiki.multitheftaut...eateStaticImage
Nie czekaj na gotowca, wida?, ?e nie tw?j kod :)

Cytat:


- i jeszcze jedno jak zrobi? polskie znaki: ?, ?, ? itp.?

Przekonwertuj skrypt na UTF-8 bez BOM. (Notepad++ - Format - Konwertuj na UTF-8 - Zapisz)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-17, 16:19


cayman11







Wiek: 30
Na forum: 4948 dni
Posty: 73



Respekt: 50

Cytat:


Nie czekaj na gotowca, wida?, ?e nie tw?j kod :)

oj tam oj tam :)

Cytat:

Przekonwertuj skrypt na UTF-8 bez BOM. (Notepad++ - Format - Konwertuj na UTF-8 - Zapisz)

Wielkie dzi?ki leci :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: pomoc
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku