Jump to content

Recommended Posts

Posted (edited)
  
function joinHandler() 
    local x = 1959.55 
    local y = -1714.46 
    local z = 17 
    spawnPlayer(source, x, y, z) 
    fadeCamera(source, true) 
    setCameraTarget(source, source) 
    outputChatBox("Witaj na moim serwerze!", source) 
end 
addEventHandler("onPlayerJoin", getRootElement(), joinHandler) 
  
function createVehicleForPlayer(thePlayer, command, vehicleModel) 
    local x,y,z = getElementPosition(thePlayer) 
    x = x + 5 
    local createdVehicle = createVehicle(tonumber(vehicleModel),x,y,z) 
end 
  
addCommandHandler("dajauto'', createVehicleForPlayer) 
  
  
 

W konsoli wyskakuje mi taki błąd '' WARNING: mapmanager\mapmanger_main.lua376 Loadnik script failed: myserver\script.lua:18: unfinished string near ''

Edited by Guest
Posted

Załadowanie skryptu nie powiodło się, niezakończony ciąg tekstu w pobliżu .

Używaj jakiegoś edytora lua, wtedy błąd widać od razu (bo kolorki są inne). Gdybyś od razu na forum też użył tagów [lua][/lua] - także dałoby się to zauważyć (przy końcu pliku od pewnego momentu wszystko jest na czerwono).

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...