Wysłany: 2014-08-22, 11:22
adrik20022002
Wiek: 25 Na forum: 4819 dni Posty: 6
Nick w MP: TheAdrik
Oto cz??? kodu w kt?rym wg. DB3 jest jaki? b??d. I przez to skrypt si? nie uruchamia
B??D:
ERROR: Loading script failed: PanelBP\client.lua:40: 'end' exected (to close 'function; at line 35) near 'else'
C-Side:
Kod: addEventHandler("onClientMarkerHit", root, function(hitElement)
if source == theMarker1 and not isPedInVehicle(hitElement) then
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
else
if source == theMarker2 and not isPedInVehicle(hitElement) then
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
else
if source == theMarker3 and not isPedInVehicle(hitElement) then
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
end
end
To s? linijki od 35 do 51.
Wysłany: 2014-08-22, 13:37
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
else
if source == theMarker3 and not isPedInVehicle(hitElement) then
od kiedy if daje si? pod else. Else to zaprzeczenie if. Jak ju? chcesz da? kilka warunk?w to dajesz elseif
Wysłany: 2014-08-22, 17:36
adrik20022002
Wiek: 25 Na forum: 4819 dni Posty: 6
Nick w MP: TheAdrik
PanMaszyna , Teraz kod wygl?da tak:
Kod: addEventHandler("onClientMarkerHit", root, function(hitElement)
if source == theMarker1 and not isPedInVehicle(hitElement) then
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
elseif source == theMarker2 and not isPedInVehicle(hitElement) then
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
elseif source == theMarker3 and not isPedInVehicle(hitElement) then
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
end
end
I znowu DB3 wywala b??d, ale inny, oto on:
ERROR: Loading script failed: PanelBP\client.lua:30: 'end' exepected (to close 'function' at line 35) near 'elseif'
Wysłany: 2014-08-22, 18:11
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Tagi: skrypt :: się :: nie :: uruchamia.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: