Snajper Posted June 14, 2013 Posted June 14, 2013 (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 June 15, 2013 by Guest
dzek (varez) Posted June 15, 2013 Posted June 15, 2013 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)!
Mefisto_PL Posted June 16, 2013 Posted June 16, 2013 addCommandHandler("dajauto", createVehicleForPlayer) Dałeś dwa apostrofy zamiast cudzysłowia(? ;o).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now