Wysłany: 2013-04-25, 20:34
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
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
Wysłany: 2013-04-25, 20:38
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
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>"
Wysłany: 2013-04-25, 20:40
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
Wysłany: 2013-04-25, 20:41
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
Jak? masz dok?adnie wersje serwera ?
W pliku meta.xml powiniene? mie? co? <min_mta_version>wersja</min_mta_version>
Usu? to
Wysłany: 2013-04-25, 20:46
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
to jest host game postawione, i nie mam tej linijki.
[ Dodano : 2013-04-25, 20:46 ]
a wersje mta mam najnowsza
Wysłany: 2013-04-25, 20:49
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
Musisz mie? to w meta.xml. Pisze ?e potrzeba minimum wersje 1.3.0-9.04491 by u?y? funkcji warpPedIntoVehicle
Wysłany: 2013-04-25, 20:55
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
Dalej to samo, i tak na marginesie panel wogole sie nie wlacza.
Wysłany: 2013-04-25, 20:55
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
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
Wysłany: 2013-04-25, 20:59
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
Wlacza sie sam panel, bez buttonow itp.
Wysłany: 2013-04-25, 21:00
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
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
Wysłany: 2013-04-25, 21:01
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
Wysłany: 2013-04-25, 21:12
Brzysiek
Skrypter pralek
Wiek: 27 Na forum: 5199 dni Posty: 488
Nick w MP: Brzysiek
Piwa : 1034
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.
Wysłany: 2013-04-25, 21:15
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
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>
Wysłany: 2013-04-25, 22:02
Brzysiek
Skrypter pralek
Wiek: 27 Na forum: 5199 dni Posty: 488
Nick w MP: Brzysiek
Piwa : 1034
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.
Wysłany: 2013-04-25, 22:10
Ciastkooo
Wiek: 41 Na forum: 4804 dni Posty: 78
Nick w MP: Ciastko
Piwa : 24
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
Tagi: gracz :: panel
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: