toptional Posted March 25, 2013 Posted March 25, 2013 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 )
manve1 Posted March 25, 2013 Posted March 25, 2013 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 )
iPrestege Posted March 25, 2013 Posted March 25, 2013 You forgot arc ")" at the beginning of the function .
toptional Posted March 25, 2013 Author Posted March 25, 2013 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.
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