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

Wysłany: 2013-04-25, 20:34


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
Wiem ze zawalam dzial , ale probuje czegos sie nauczyc ;)

co tu jest zle ? W konsoli pokazuje mi

Kod:


WARNING: gracz requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.3.0-9.04491 because of 'warpPedIntoVehicle')
[20] Use the 'upgrade' command to perform a basic upgrade of resources.


KOD CLIENT:


GUIEditor = {
    gridlist = {},
    button = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        okno = guiCreateWindow(505, 250, 581, 513, "Panel Gracza", false)
        guiSetAlpha(okno, 0.79)
        guiSetSizable ( okno, false)
        guiSetMovable ( okbo, false)

        GUIEditor.label[1] = guiCreateLabel(134, 15, 378, 117, "Panel Gracza", false, okno)
        guiSetFont(GUIEditor.label[1], "sa-header")
        GUIEditor.button[1] = guiCreateButton(209, 147, 144, 62, "MAX HP", false, okno)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(210, 234, 143, 62, "MAX ARMOR", false, okno)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.label[2] = guiCreateLabel(204, 313, 155, 57, "Pojazd:", false, okno)
        guiSetFont(GUIEditor.label[2], "sa-header")
        bullet = guiCreateButton(69, 375, 125, 60, "Bullet", false, okno)
        guiSetFont(bullet, "default-bold-small")
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
        sabre = guiCreateButton(229, 376, 120, 59, "Sabre", false, okno)
        guiSetFont(sabre, "default-bold-small")
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
        buffalo = guiCreateButton(382, 376, 127, 59, "Buffalo", false, okno)
        guiSetFont(buffalo, "default-bold-small")
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")    
    end
)


addEventHandler ( "onClientGUIClick", bullet, bullett)
addEventHandler ( "onClientGUIClick", sabre, sabree)


function gui() 
if (guiGetVisible (okno) == false) then 
guiSetVisible(okno, true) 
showCursor(true) 
else 
guiSetVisible(okno, false) 
showCursor(false) 
end 
end 
bindKey ("F3", "down", gui) 


function bullett(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local bullet = createVehicle ( 541, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, bullet)
    
    
function sabree(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local sabre = createVehicle ( 475, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, sabre)


Ostatnio zmieniony przez Ciastkooo 2013-04-25, 20:41, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:38


Bilguun







Wiek: 27
Na forum: 5212 dni
Posty: 133
Nick w MP: Bilguun

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Z tego co przet?umaczy?em moim super angielskim musisz mie? minimum wersje 1.3.0-9.04491 serwera bo w wcze?niejszych nie ma funkcji warpPedIntoVehicle

POMOG?EM CI, DAJ PIWO !


EDIT: wpisz w konsoli "upgrade" jak nie zadzia?a to "upgrade <nazwaskryptu>"

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:40


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
Nic sie nie dzieje.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:41


Bilguun







Wiek: 27
Na forum: 5212 dni
Posty: 133
Nick w MP: Bilguun

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Jak? masz dok?adnie wersje serwera ?
W pliku meta.xml powiniene? mie? co? <min_mta_version>wersja</min_mta_version>
Usu? to

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:46


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
to jest host game postawione, i nie mam tej linijki.

[ Dodano: 2013-04-25, 20:46 ]
a wersje mta mam najnowsza

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:49


Bilguun







Wiek: 27
Na forum: 5212 dni
Posty: 133
Nick w MP: Bilguun

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Musisz mie? to w meta.xml. Pisze ?e potrzeba minimum wersje 1.3.0-9.04491 by u?y? funkcji warpPedIntoVehicle

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:55


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
Dalej to samo, i tak na marginesie panel wogole sie nie wlacza.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:55


Riot

3X






Wiek: 30
Na forum: 5870 dni
Posty: 1123
Nick w MP: Riot/3X

Piwa: 286

Respekt: 123
Respekt: 123

Do mety dodaj:

Kod:

<min_mta_version client="1.3.0-9.04491" />



"Ciastkooo" napisał/a:

Dalej to samo, i tak na marginesie panel wogole sie nie wlacza.


Skoro nie wiesz co to end, to nie dziw si? ?e nie dzia?a.
Ka?d? funkcje ko?czymy pisz?c end.


GUIEditor = {
    gridlist = {},
    button = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        okno = guiCreateWindow(505, 250, 581, 513, "Panel Gracza", false)
        guiSetAlpha(okno, 0.79)
        guiSetSizable ( okno, false)
        guiSetMovable ( okbo, false)

        GUIEditor.label[1] = guiCreateLabel(134, 15, 378, 117, "Panel Gracza", false, okno)
        guiSetFont(GUIEditor.label[1], "sa-header")
        GUIEditor.button[1] = guiCreateButton(209, 147, 144, 62, "MAX HP", false, okno)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(210, 234, 143, 62, "MAX ARMOR", false, okno)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.label[2] = guiCreateLabel(204, 313, 155, 57, "Pojazd:", false, okno)
        guiSetFont(GUIEditor.label[2], "sa-header")
        bullet = guiCreateButton(69, 375, 125, 60, "Bullet", false, okno)
        guiSetFont(bullet, "default-bold-small")
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
        sabre = guiCreateButton(229, 376, 120, 59, "Sabre", false, okno)
        guiSetFont(sabre, "default-bold-small")
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
        buffalo = guiCreateButton(382, 376, 127, 59, "Buffalo", false, okno)
        guiSetFont(buffalo, "default-bold-small")
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")    
    end
)


addEventHandler ( "onClientGUIClick", bullet, bullett)
addEventHandler ( "onClientGUIClick", sabre, sabree)


function gui() 
if (guiGetVisible (okno) == false) then 
guiSetVisible(okno, true) 
showCursor(true) 
else 
guiSetVisible(okno, false) 
showCursor(false) 
end 
end 
bindKey ("F3", "down", gui) 


function bullett(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local bullet = createVehicle ( 541, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, bullet)
end
    
    
function sabree(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local sabre = createVehicle ( 475, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, sabre)
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 20:59


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
Wlacza sie sam panel, bez buttonow itp.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 21:00


Riot

3X






Wiek: 30
Na forum: 5870 dni
Posty: 1123
Nick w MP: Riot/3X

Piwa: 286

Respekt: 123
Respekt: 123

GUIEditor = {
    gridlist = {},
    button = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        okno = guiCreateWindow(505, 250, 581, 513, "Panel Gracza", false)
        guiSetAlpha(okno, 0.79)
        guiSetSizable ( okno, false)
        guiSetMovable ( okno, false)

        GUIEditor.label[1] = guiCreateLabel(134, 15, 378, 117, "Panel Gracza", false, okno)
        guiSetFont(GUIEditor.label[1], "sa-header")
        GUIEditor.button[1] = guiCreateButton(209, 147, 144, 62, "MAX HP", false, okno)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(210, 234, 143, 62, "MAX ARMOR", false, okno)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.label[2] = guiCreateLabel(204, 313, 155, 57, "Pojazd:", false, okno)
        guiSetFont(GUIEditor.label[2], "sa-header")
        bullet = guiCreateButton(69, 375, 125, 60, "Bullet", false, okno)
        guiSetFont(bullet, "default-bold-small")
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
        sabre = guiCreateButton(229, 376, 120, 59, "Sabre", false, okno)
        guiSetFont(sabre, "default-bold-small")
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
        buffalo = guiCreateButton(382, 376, 127, 59, "Buffalo", false, okno)
        guiSetFont(buffalo, "default-bold-small")
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")    
    end
)


addEventHandler ( "onClientGUIClick", bullet, bullett)
addEventHandler ( "onClientGUIClick", sabre, sabree)


function gui() 
if (guiGetVisible (okno) == false) then 
guiSetVisible(okno, true) 
showCursor(true) 
else 
guiSetVisible(okno, false) 
showCursor(false) 
end 
end 
bindKey ("F3", "down", gui) 


function bullett(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local bullet = createVehicle ( 541, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, bullet)
end
    
    
function sabree(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local sabre = createVehicle ( 475, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, sabre)
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 21:01


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
nadal sam panel O.o

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 21:12


Brzysiek

Skrypter pralek






Wiek: 28
Na forum: 5340 dni
Posty: 488
Nick w MP: Brzysiek

Piwa: 1034

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


function bullett(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local bullet = createVehicle ( 541, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, bullet)
end
    
    
function sabree(thePlayer)
    local x,y,z = getElementPosition (thePlayer)
    local sabre = createVehicle ( 475, x , y+3, z+1)
    warpPedIntoVehicle ( thePlayer, sabre)
end

Zacznij rozr??nia? stron? client | serwer.


function bullett()
    local x,y,z = getElementPosition (getLocalPlayer())
    local bullet = createVehicle ( 541, x , y+3, z+1)
    warpPedIntoVehicle (getLocalPlayer(), bullet)
end
    
    
function sabree()
    local x,y,z = getElementPosition (getLocalPlayer())
    local sabre = createVehicle ( 475, x , y+3, z+1)
    warpPedIntoVehicle ( getLocalPlayer(), sabre)
end


Wywal te linijki:

guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")    
 guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
 guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")

Te buttony nie s? zdefiniowane.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 21:15


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
co masz na mysli?

[ Dodano: 2013-04-25, 21:33 ]
I dalej wyskakuje mi blad z <min_mta_version> mimo ze dodalem do mety
Kod:


<min_mta_version>1.3.0-9.04491</min_mta_version>


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 22:02


Brzysiek

Skrypter pralek






Wiek: 28
Na forum: 5340 dni
Posty: 488
Nick w MP: Brzysiek

Piwa: 1034

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

Tw?j serwer stoi na 1.3.1? Funkcja warpPedIntoVehicle po stronie clienta jest tylko obs?ugiwana od wersji MTA 1.3.1. Zainstaluj nowsz? wersj? MTA.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-04-25, 22:10


Ciastkooo







Wiek: 42
Na forum: 4945 dni
Posty: 78
Nick w MP: Ciastko

Piwa: 24

Respekt: 50

Ostrzeżeń: 100%
Mam najnowsza. A co do panelu pojawily sie buttony, problemem byl setGuiMovable i Sizable. Teraz gdy klikam na Sabre, bullet to nie tworzy auta kolo mnie. A moja wersja mta to 1.3.1

Postaw piwo autorowi tego posta
 

 
Tagi: gracz :: panel
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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