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

Wysłany: 2014-08-08, 14:16


Mizy1999

I <3 Mta






Wiek: 28
Na forum: 4995 dni
Posty: 157
Nick w MP: xxx

Piwa: 154

Respekt: 40

Hejo, dzi? zaj??em si? panelem mechanika, mam za to problem, panel si? pojawia itd, jednak zrobi?em takie funkcje:

Kod:

addEventHandler ( "onClientGUIClick", GUIEditor.button[1],
function()
outputChatBox ( "[Panel] Podno?nik aktywowany!", 0, 150, 0 )
triggerServerEvent ( "podnosnikup", getLocalPlayer() )
end
)


Jest ich chyba z sze??, przy ka?dej wywala db3 Dok?adnie to:
Kod:

Bad Argument @ ' addEventHandler ' expected element at argument 2, got nill


Oczywi?cie dzi?ki za pomoc, dam repe i piffko ;P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-08, 14:39


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Na ch?opski rozum, nie zna 2 argumentu eventu, czyli elementu okna.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-08, 14:43


Mizy1999

I <3 Mta






Wiek: 28
Na forum: 4995 dni
Posty: 157
Nick w MP: xxx

Piwa: 154

Respekt: 40

Okej maszyna, to jest gui z edytora:
Kod:

GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(949, 296, 245, 443, "Panel Mechanika", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF528B0F")

GUIEditor.button[1] = guiCreateButton(16, 135, 88, 42, "Podno?nik: Up", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF528B0F")
GUIEditor.button[2] = guiCreateButton(138, 134, 88, 43, "Podno?nik: Down", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF528B0F")
GUIEditor.button[3] = guiCreateButton(17, 270, 87, 50, "", false, GUIEditor.window[1])
GUIEditor.button[4] = guiCreateButton(17, 270, 87, 50, "Skin: Mechanik Kobieta I", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF943405")
GUIEditor.button[5] = guiCreateButton(143, 270, 83, 50, "Skin: Mechanik Kobieta II", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF943405")
GUIEditor.button[6] = guiCreateButton(17, 330, 87, 54, "Skin: Mechanik M??czyzna I", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF943405")
GUIEditor.button[7] = guiCreateButton(143, 330, 83, 54, "Skin: Mechanik M??czyzna II", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[7], "default-bold-small")
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF943405")
GUIEditor.label[1] = guiCreateLabel(23, 57, 217, 48, "Tutaj mo?esz zmieni? skin, wraz z ", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "default-bold-small")
GUIEditor.label[2] = guiCreateLabel(23, 70, 219, 25, "interakcj? podno?nika.", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
end
)


Mo?e z?y argument wzi??em, zerknij w to.

Postaw piwo autorowi tego posta
 

 
Tagi: panel :: mechanika
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Panel Mechanika 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