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

Wysłany: 2015-11-21, 13:38


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Witam, mam tutaj kod na mk1 i mam debugscript 3


--TUNE STANOWISKO 1
function tune (thePlayerseat)
if isElementWithinMarker(thePlayermkthen
local hajs getPlayerMoney(thePlayer)
if  (hajs 30000 then
outputChatBox("Nie masz wystarczajaco pieniedzy",thePlayer0170255true)
else
if isPedInVehicle thePlayer then
local car getPedOccupiedVehicle thePlayer )
local acceleration getVehicleHandlingProperty(car,"engineAcceleration")
setVehicleHandling(car,"engineAcceleration",tonumber(acceleration)+10)
takePlayerMoney(thePlayer30000)
outputChatBox("Dodales do auta mk1 zaplaciles 30000$"thePlayer0170255true)
else
outputChatBox ("nie jestes w aucie!"thePlayer0170255true)
end
end
end  
end
addCommandHandler("dodaj.mk1"tune)

function wjechal (thePlayer)
outputChatBox ("Wpisz /dodaj.mk1 ( koszt 30000$ )"thePlayer0170255true)
end
addEventHandler("onMarkerHit",mk,wjechal) 

--TUNE STANOWISKO 2
function tune1 (thePlayerseat)
if isElementWithinMarker(thePlayermk1then
local hajs getPlayerMoney(thePlayer)
if  (hajs 35000 then
outputChatBox("Nie masz wystarczajaco pieniedzy",thePlayer0170255true)
else
if isPedInVehicle thePlayer then
local car getPedOccupiedVehicle thePlayer )
 local driveType getVehicleHandlingProperty(car,"driveType")
setVehicleHandling(car,"driveType","awd")
takePlayerMoney(thePlayer35000)
outputChatBox("Dodales do auta mk2 zaplaciles 35000$"thePlayer0170255true)
else
outputChatBox ("nie jestes w aucie!"thePlayer0170255true)
end
end
end
end
addCommandHandler("dodaj.mk2"tune1)

function wjechal (thePlayer)
outputChatBox ("Wpisz /dodaj.mk2 ( koszt 35000$ )"thePlayer0170255true)
end
addEventHandler("onMarkerHit",mk1,wjechal


db3: 196: attempt to call global 'getVehicleHandlingProperty' (a nil value)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-21, 13:50


ironmaiden666

Voight...






Wiek: 30
Na forum: 4020 dni
Posty: 125
Nick w MP: Irons

Piwa: 2941

Respekt: 102
Respekt: 102

Ostrzeżeń: 40%
Jakby? m?g? ponumerowa? linijki to bym podzi?kowa? :)

Podpis
Intelligence gonna get you..
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-21, 13:51


Barcioo

Kiedyś to było ST






Wiek: 26
Na forum: 4049 dni
Posty: 458
Nick w MP: Bartek.

Piwa: 1887

Respekt: 460
Respekt: 460


--TUNE STANOWISKO 1
function tune (thePlayerseat)
if isElementWithinMarker(thePlayermkthen
local hajs getPlayerMoney(thePlayer)
if  (hajs 30000 then
outputChatBox("Nie masz wystarczajaco pieniedzy",thePlayer0170255true)
else
if isPedInVehicle thePlayer then
local car getPedOccupiedVehicle thePlayer )
setVehicleHandling(car,"engineAcceleration",10)
takePlayerMoney(thePlayer30000)
outputChatBox("Dodales do auta mk1 zaplaciles 30000$"thePlayer0170255true)
else
outputChatBox ("nie jestes w aucie!"thePlayer0170255true)
end
end
end  
end
addCommandHandler("dodaj.mk1"tune)

function wjechal (thePlayer)
outputChatBox ("Wpisz /dodaj.mk1 ( koszt 30000$ )"thePlayer0170255true)


Podpis
Kanał Youtube;
A tu zapraszam
, pomogłem Ci? Wynagrodź mnie :piwo: :)


SUPPORT TEAM- 2016-09-03 do 2018-05-25
Test Mod- 2018-05-25
1k dni na Forum - 2018-01-28


GG: 62111935
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-21, 13:59


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Dziala do zamkniecia :D

Postaw piwo autorowi tego posta
 

 
Tagi: mk1
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