Jump to content

Bug my script teleport


Furious^ONE!

Recommended Posts

Posted

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) 
 

Posted (edited)

You missed (") on outputchatbox

outputChatBox ( "Vous vous êtes teleporté !", thePlayer, 255, 255, 255 ) 

Edited by Guest
Posted

[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 '?'

Posted
function drift(thePlayer) 
setElementPosition(thePlayer, 1543.31995, -1360.21033, 329.46252) 
outputChatBox ( "Vous vous êtes teleporté !", thePlayer, 255, 255, 255 ) 
end 
addCommandHandler("para",drift) 

Posted

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

  • Moderators
Posted

He has to encode it to UTF-8 with notepad ++......... (8-bit Unicode Transformation Format)

The server can't read the code.

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