Furious^ONE! Posted December 24, 2013 Share Posted December 24, 2013 Hello my script is bugged I'd like to know how to debug. error message consol : [2013-12-24 17:58:24] Starting teleport-para [2013-12-24 17:58:24] WARNING: Script 'teleport-para/tp.lua' is not encoded in UTF-8. Loading as ANSI... [2013-12-24 17:58:24] SCRIPT ERROR: teleport-para/tp.lua:1: unexpected symbol near '?' [2013-12-24 17:58:24] ERROR: Loading script failed: teleport-para/tp.lua:1: unexpected symbol near '?' I try to add a message at the teleportation : outputChatBox ( "Vous vous êtes teleporté !, thePlayer, 255, 255, 255 ) my code : function drift(gracz, cmd) setElementPosition(gracz, 1543.31995, -1360.21033, 329.46252) outputChatBox ( "Vous vous êtes teleporté !, thePlayer, 255, 255, 255 ) end addCommandHandler("para",drift) Link to comment
Chaos Posted December 24, 2013 Share Posted December 24, 2013 (edited) You missed (") on outputchatbox outputChatBox ( "Vous vous êtes teleporté !", thePlayer, 255, 255, 255 ) Edited December 24, 2013 by Guest Link to comment
Furious^ONE! Posted December 24, 2013 Author Share Posted December 24, 2013 [2013-12-24 18:07:50] SCRIPT ERROR: teleport-para/tp.lua:1: unexpected symbol near '?' [2013-12-24 18:07:50] ERROR: Loading script failed: teleport-para/tp.lua:1: unexpected symbol near '?' Link to comment
Chaos Posted December 24, 2013 Share Posted December 24, 2013 function drift(thePlayer) setElementPosition(thePlayer, 1543.31995, -1360.21033, 329.46252) outputChatBox ( "Vous vous êtes teleporté !", thePlayer, 255, 255, 255 ) end addCommandHandler("para",drift) Link to comment
Furious^ONE! Posted December 24, 2013 Author Share Posted December 24, 2013 [2013-12-24 18:14:16] Starting teleport-para [2013-12-24 18:14:16] WARNING: Script 'teleport-para/tp.lua' is not encoded in UTF-8. Loading as ANSI... [2013-12-24 18:14:16] SCRIPT ERROR: teleport-para/tp.lua:1: unexpected symbol near '?' [2013-12-24 18:14:16] ERROR: Loading script failed: teleport-para/tp.lua:1: unexpected symbol near '?' [2013-12-24 18:14:16] teleport-para restarted successfully It is still error... Link to comment
Furious^ONE! Posted December 24, 2013 Author Share Posted December 24, 2013 Me meta.xml : Link to comment
Chaos Posted December 24, 2013 Share Posted December 24, 2013 The script should work maybe you have problem Link to comment
xXMADEXx Posted December 24, 2013 Share Posted December 24, 2013 Post your entire script. Link to comment
Moderators IIYAMA Posted December 25, 2013 Moderators Share Posted December 25, 2013 He has to encode it to UTF-8 with notepad ++......... (8-bit Unicode Transformation Format) The server can't read the code. 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