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

Wysłany: 2016-07-20, 15:58


GamerHD11







Wiek: 24
Na forum: 4260 dni
Posty: 259
Nick w MP: SzokoHD

Piwa: 23

Respekt: 50

Witam m?j problem polega na tym, ?e skrypt nie dzia?a. Przenios?em wczoraj skrypty serwerowe z lokalnego serwera na hostowany Server Project i wywala oto takie b??dy.
Na lokalnym serwerze nic takiego si? nie pojawia?o i wszystko idealnie dzia?a?o.

[2016-07-20 15:52] ERROR: Loading script failed: [gameplay]/Us-Salon/salon.lua:1: unexpected symbol near '?'
[2016-07-20 15:52] SCRIPT ERROR: [gameplay]/Us-Salon/salon.lua:1: unexpected symbol near '?'
[2016-07-20 15:52] WARNING: Script '[gameplay]/Us-Salon/salon.lua' is not encoded in UTF-8. Loading as ANSI...

Kod:

createBlip(-305.512631208.0699519.7381955)
col createColCuboid(-295.387821192.3786619.74219444)

walton createVehicle(478, -305.512631208.0699519.73819)
setElementRotation(walton00180)
setElementFrozen(waltontrue)
rnd math.random(7000097000)
rnd10 math.random(750900)
setElementData(walton"przebieg"rnd)
setElementData(walton"bak"35)
przebieg getElementData(walton"przebieg")
setElementData(walton"opis""Marka: Walton \n Przebieg: "..przebieg.." KM \n Cena: "..rnd10.." $ \n Bak: 35 L \n Aby kupi? auto wejd? do ?rodka i wpisz /zakupauto.")
setElementData(walton"niemozna"true)

perek createVehicle(404, -298.904421210.2570819.73819)
setElementRotation(perek00180)
setElementFrozen(perektrue)
rnd1 math.random(7000097000)
rnd20 math.random(13501700)
setElementData(perek"przebieg"rnd1)
bak2 setElementData(walton"bak"40)
przebieg getElementData(perek"przebieg")
setElementData(perek"opis""Marka: Perennial \n Przebieg: "..przebieg.." KM \n Cena: "..rnd20.." $ \n Bak: 40 L \n Aby kupi? auto wejd? do ?rodka i wpisz /zakupauto.")
setElementData(perek"niemozna"true)

manana createVehicle(410, -311.522281207.0018319.43819)
setElementRotation(manana00180)
setElementFrozen(mananatrue)
rnd2 math.random(7000097000)
rnd30 math.random(19502750)
setElementData(manana"przebieg"rnd2)
setElementData(manana"bak"40)
przebieg getElementData(manana"przebieg")
setElementData(manana"opis""Marka: Manana \n Przebieg: "..przebieg.." KM \n Cena: "..rnd30.." $ \n Bak: 40 L \n Aby kupi? auto wejd? do ?rodka i wpisz /zakupauto.")

sadler createVehicle(543, -309.533751197.9459219.74219)
setElementRotation(sadler00, -40)
setElementFrozen(sadlertrue)
rnd3 math.random(80000100000)
rnd40 math.random(35004250)
setElementData(sadler"przebieg"rnd3)
setElementData(sadler"bak"45)
przebieg getElementData(sadler"przebieg")
setElementData(sadler"opis""Marka: Sadler \n Przebieg: "..przebieg.." KM \n Cena: "..rnd40.." $ \n Bak: 45 L \n Aby kupi? auto wejd? do ?rodka i wpisz /zakupauto.")
setElementData(sadler"niemozna"true)

function dajID()
local dajid 1
for iv in ipairs(getElementsByType("vehicle")) do
if not getElementData(v"vehid") == nil or not getElementData(v"vehid") == false then
vehid dajid +1
end
end
return dajid
end

function kupWaltona(thePlayer)
for kv in ipairs (getElementsByType("vehicle")) do
if isElementWithinColShape(vcol) == true then return outputChatBox("Miejsce parkingowe jest aktualnie zaj?te. Poczekaj chwilk? a? kto? odjedzie ..."thePlayer050100end
end
if getPedOccupiedVehicle(thePlayer) == walton then
if getPlayerMoney(thePlayer) >= rnd10 then
auto createVehicle(478, -295.387821192.3786619.74219)
warpPedIntoVehicle(thePlayerauto)
takePlayerMoney(thePlayerrnd10)
konto getAccountName(getPlayerAccount(thePlayer))
setElementData(auto"przebieg"rnd)
setElementData(auto"paliwo"20)
setElementData(auto"vehid"dajID())
setElementData(auto"bak"35)
id getElementData(auto"vehid")
nadaj "FC 0"..id..""
setVehiclePlateText(autonadaj)
setElementData(auto"owner"konto)
setElementData(auto"prywatne"true)
setVehicleOverrideLights(auto1)
outputChatBox("Zakupi?e? auto marki: Walton za: "..rnd10.." $."thePlayer255255255)
outputChatBox("?yczymy mi?ego u?ytkowania."thePlayer255255255)
else
outputChatBox("Nie posiadasz pieni?dzy na t? inwestycj?."thePlayer255255255)
end
end
end
addCommandHandler("zakupauto"kupWaltona)

function kupPerka(thePlayer)
for kv in ipairs (getElementsByType("vehicle")) do
if isElementWithinColShape(vcol) == true then return outputChatBox("Miejsce parkingowe jest aktualnie zaj?te. Poczekaj chwilk? a? kto? odjedzie ..."thePlayer050100end
end
if getPedOccupiedVehicle(thePlayer) == perek then
if getPlayerMoney(thePlayer) >= rnd20 then
auto createVehicle(404, -295.387821192.3786619.74219)
warpPedIntoVehicle(thePlayerauto)
takePlayerMoney(thePlayerrnd20)
konto getAccountName(getPlayerAccount(thePlayer))
setElementData(auto"przebieg"rnd1)
setElementData(auto"paliwo"20)
setElementData(auto"vehid"dajID())
setElementData(auto"bak"40)
id getElementData(auto"vehid")
nadaj "FC 0"..id..""
setVehiclePlateText(autonadaj)
setElementData(auto"owner"konto)
setElementData(auto"prywatne"true)
setVehicleOverrideLights(auto1)
outputChatBox("Zakupi?e? auto marki: Perennial za: "..rnd20.." $."thePlayer255255255)
outputChatBox("?yczymy mi?ego u?ytkowania."thePlayer255255255)
else
outputChatBox("Nie posiadasz pieni?dzy na t? inwestycj?."thePlayer255255255)
end
end
end
addCommandHandler("zakupauto"kupPerka)

function kupManana(thePlayer)
for kv in ipairs (getElementsByType("vehicle")) do
if isElementWithinColShape(vcol) == true then return outputChatBox("Miejsce parkingowe jest aktualnie zaj?te. Poczekaj chwilk? a? kto? odjedzie ..."thePlayer050100end
end
if getPedOccupiedVehicle(thePlayer) == manana then
if getPlayerMoney(thePlayer) >= rnd30 then
auto createVehicle(410, -295.387821192.3786619.74219)
warpPedIntoVehicle(thePlayerauto)
takePlayerMoney(thePlayerrnd30)
konto getAccountName(getPlayerAccount(thePlayer))
setElementData(auto"przebieg"rnd2)
setElementData(auto"paliwo"20)
setElementData(auto"vehid"dajID())
setElementData(auto"bak"40)
id getElementData(auto"vehid")
nadaj "FC 0"..id..""
setVehiclePlateText(autonadaj)
setElementData(auto"owner"konto)
setElementData(auto"prywatne"true)
setVehicleOverrideLights(auto1)
outputChatBox("Zakupi?e? auto marki: Manana za: "..rnd30.." $."thePlayer255255255)
outputChatBox("?yczymy mi?ego u?ytkowania."thePlayer255255255)
else
outputChatBox("Nie posiadasz pieni?dzy na t? inwestycj?."thePlayer255255255)
end
end
end
addCommandHandler("zakupauto"kupManana)

function kupSadler(thePlayer)
for kv in ipairs (getElementsByType("vehicle")) do
if isElementWithinColShape(vcol) == true then return outputChatBox("Miejsce parkingowe jest aktualnie zaj?te. Poczekaj chwilk? a? kto? odjedzie ..."thePlayer050100end
end
if getPedOccupiedVehicle(thePlayer) == sadler then
if getPlayerMoney(thePlayer) >= rnd40 then
auto createVehicle(543, -295.387821192.3786619.74219)
warpPedIntoVehicle(thePlayerauto)
takePlayerMoney(thePlayerrnd40)
konto getAccountName(getPlayerAccount(thePlayer))
setElementData(auto"przebieg"rnd3)
setElementData(auto"paliwo"20)
setElementData(auto"vehid"dajID())
setElementData(auto"bak"45)
setElementHealth(auto500)
id getElementData(auto"vehid")
nadaj "FC 0"..id..""
setVehiclePlateText(autonadaj)
setElementData(auto"owner"konto)
setElementData(auto"prywatne"true)
setVehicleOverrideLights(auto1)
outputChatBox("Zakupi?e? auto marki: Sadler za: "..rnd40.." $."thePlayer255255255)
outputChatBox("?yczymy mi?ego u?ytkowania."thePlayer255255255)
else
outputChatBox("Nie posiadasz pieni?dzy na t? inwestycj?."thePlayer255255255)
end
end
end
addCommandHandler("zakupauto"kupSadler)

function wsiadanie playerseatjacked )
if seat == 0 then
kierowca getVehicleOccupant source)
if getPlayerName (kierowca) ~= getPlayerName player then
cancelEvent() return end
local name getPlayerName source )
if getElementData(source"prywatne"then
local accName getAccountName getPlayerAccount player ) )
if getElementData(source"owner") == getAccountName(getPlayerAccount(player)) or isObjectInACLGroup ("user."..accNameaclGetGroup "Admin" ) ) then
else
cancelEvent()
co getPedOccupiedVehicle player )
nazwa getVehicleName co )
owner2 getElementData co"owner" )
outputChatBox("Nie posiadasz kluczyk?w do tego pojazdu !"player,255255255)
outputChatBox("Ten pojazd nale?y do: "..owner2.." "player,255255255)
end
end
end
end
addEventHandler "onVehicleStartEnter"getRootElement(), wsiadanie )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-20, 16:00


marcin778

Krytyk serwerów MTA






Wiek: 24
Na forum: 4149 dni
Posty: 2268
Nick w MP: Marcineg

Piwa: 4662

Respekt: 1436,8
Respekt: 1436,8

Otw?rz plik programem notepad++ nast?pnie wejd? u g?ry w format i wybierz Koduj w UTF-8 zapis ctrl+s i bedzie git.

Podpis
Moje prace: https://www.youtube.com/c...MuaWGHPp1mhlGnw

-- obecnie
-- obecnie
-- dawniej
-- dawniej
-- dawniej
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-20, 16:10


GamerHD11







Wiek: 24
Na forum: 4260 dni
Posty: 259
Nick w MP: SzokoHD

Piwa: 23

Respekt: 50

Dzi?ki dzia?a. Mo?na zamkn?? temat.

Postaw piwo autorowi tego posta
 

 
Tagi: salon :: aut
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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