DjMixCuma Posted November 10, 2012 Share Posted November 10, 2012 HELLO I have strange error. This code works in 100% in Windows but when i upload it to linux server i see error in console: WARNING: Loading script failed: [gamemodes]/[play]/play/Player.lua:1: unexpected symbol near '?' and resource not starting local spawns = { {2486.6191, -1661.2399, 13.3359, 359.8272}, {2000.5002, 1527.7755, 14.6223, 359.7770}, {-2405.5828, -596.4693, 132.6484, 308.9108}, {-688.1240, 946.5006, 13.0313, 359.6285} } addEventHandler("onPlayerJoin", getRootElement(), function() local X, Y, Z, Rot = unpack(spawns[math.random(#spawns)]) spawnPlayer(source, X, Y, Z, Rot) setCameraTarget(source, source) end) Link to comment
Scripting Moderators Sarrum Posted November 10, 2012 Scripting Moderators Share Posted November 10, 2012 Need encode lua in UTF-8 without BOM. Link to comment
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