Jump to content

<name> or '...' exp ERROR!


toptional

Recommended Posts

Posted

Got this error with this script

SCRIPT ERROR: Avia_Intro\server.lua:18: or '...' expected near 'local'

addEvent ( "spawnDodo", true) 
addEventHandler ("spawnDodo", root, 
    function (  
        local dodo = createVehicle ( 593, 1690.14868, 1453.82971, 10.76650, 0, 0, 0 ) 
            warpPedIntoVehicle( source, dodo ) 
            outputChatBox ("#FF0000You will now take your first flight! Go to the blip marked on your map to pickup your first passenger.", getRootElement(), 255, 0, 0, true ) 
    end 
) 

Posted
addEvent ( "spawnDodo", true) 
addEventHandler ("spawnDodo", root, 
    function () 
        local dodo = createVehicle ( 593, 1690.14868, 1453.82971, 10.76650, 0, 0, 0 ) 
            warpPedIntoVehicle( source, dodo ) 
            outputChatBox ("#FF0000You will now take your first flight! Go to the blip marked on your map to pickup your first passenger.", getRootElement(), 255, 0, 0, true ) 
    end 
) 

Posted

Silly mistake by me

btw, when i use

fixVehicle (  theVehicle ) 

What goes in the parameters "theVehicle" This is server side, it should fix the car of the local player.

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...