Wysłany: 2018-09-09, 20:18
GrzybcioPL00
Uczeń LUA Pomagacz
Wiek: 23 Na forum: 3499 dni Posty: 97
Nick w MP: Siwexx
Piwa : 17
Cze?? ! Mam malutki k?opot poniewa? po wpisaniu komendy nie respi mi pojazdu :
addCommandHandler ( "kupauto" , function( plr )
local veh = getPedOccupiedVehicle ( plr )
if not veh or not getElementData ( veh , "wSalonie" ) then outputChatBox ( "Nie jeste? w poje?dzie na sprzeda?!" , plr ) return end
if not getElementData ( veh , "cena" ) then return end
outputChatBox ( "Kupi?e? pojazd marki " .. getVehicleName ( veh ) .. ", gratulacje!" , plr )
local kupiles = createVehicle ( getVehicleName ( veh ), 1465.57 , - 1729.80 , 13.06 , 360.0 , 360.0 , 88.4 ) -- tu te ? mo ? esz Z g?ry dzi?ki
[ Dodano : 2018-09-09, 20:19 ]
DB 3 : WARNING: [skrypty]\elife-salon_ls\salon.lua:27: Expected number, got non-convertible string. This warning may be an error in future versions
Wysłany: 2018-09-09, 20:21
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Brak?o Ci enda.
Respi?c pojazd musisz u?y? jego ID w pierwszy argumencie, je?eli chcia?by? pobra? ID z nazwy auta u?yj funkcji
Gotowy kod:
addCommandHandler ( "kupauto" , function( plr )
local veh = getPedOccupiedVehicle ( plr )
if not veh or not getElementData ( veh , "wSalonie" ) then outputChatBox ( "Nie jeste? w poje?dzie na sprzeda?!" , plr ) return end
if not getElementData ( veh , "cena" ) then return end
outputChatBox ( "Kupi?e? pojazd marki " .. getVehicleName ( veh ) .. ", gratulacje!" , plr )
local kupiles = createVehicle ( getElementModel ( veh ), 1465.57 , - 1729.80 , 13.06 , 360.0 , 360.0 , 88.4 ) -- tu te ? mo ? esz
warpPedIntoVehicle ( plr , kupiles )
end )
Więcej szczegółów
Wystawiono 1 piw(a):GrzybcioPL00
Tagi: nie :: respi :: pojazdu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: