Forum

> > CS2D > Scripts > [ERROR] unexpected symbol (Solved)
Forums overviewCS2D overview Scripts overviewLog in to reply

English [ERROR] unexpected symbol (Solved)

16 replies
To the start Previous 1 Next To the start

old [ERROR] unexpected symbol (Solved)

DarkFireps2
User Off Offline

Quote
This is the code , Help me !

Spoiler >


the error is :

sys/lua/menusaylua.lua:1: unexpected symbol near '´'
edited 1×, last 15.03.17 07:21:07 pm

old Re: [ERROR] unexpected symbol (Solved)

Masea
Super User Off Offline

Quote
1
2
3
4
5
6
addhook("say","_text")
function _text(id,text)
	if (text == "@say") then
		msg("©255255255"..player(id,"name").." (L.G> PlayerMessage) "..txt)
	end
end
You forgot adding the function and its end of last hook.

old quote

DarkFireps2
User Off Offline

Quote
@user Masea:
The error comes out in the dedicated, is
Sys / lua / menusaylua.lua: 1: unexpected symbol near '' '
And the code where it comes out is:
Addhook ("say", "lshop")

old Re: [ERROR] unexpected symbol (Solved)

Yates
Reviewer Off Offline

Quote
@user Masea: You didn't fix anything, check the original code behind the
menu()
, it has an
end


Can't see anything wrong myself. I think the culprits may be the quotations that may actually be identical alt codes.

old Re: [ERROR] unexpected symbol (Solved)

Masea
Super User Off Offline

Quote
@user Yates: Lol. You check the original code over again, especially the very last place. I can easily say that, I've saved him from a big hell which nobody wants to be in.
Spoiler >

@user DarkFireps2: Can you show me the final state of code with my fixing?
edited 2×, last 15.03.17 07:03:06 pm

old lel

DarkFireps2
User Off Offline

Quote
I still can not fix it ... I need to finish it to finish the beta of the menu and in the end to host my server


old this is the code

DarkFireps2
User Off Offline

Quote
@user Masea:
Spoiler >


error :
sys/lua/menusaylua.lua:1: unexpected symbol near '´'

old n :O

DarkFireps2
User Off Offline

Quote
@user Masea:

I do not know, I get that error in that script and I do not know how to solve it, I just wanted to see if "someone" could

old Re: [ERROR] unexpected symbol (Solved)

Mami Tomoe
User Off Offline

Quote
Are you sure you're giving us the file with the error? And all of it?
And are you sure you're using the same file from the same dedicated (no multiple game folders)?

old solved

DarkFireps2
User Off Offline

Quote
@user Mami Tomoe:
Already fix it, the error was in the .lua, remove the file and save it in a folder inside sys / lua, now walks

Thanks also

old Re: [ERROR] unexpected symbol (Solved)

Carnivohra
User Off Offline

Quote
I can´t find the wrong symbol, but don´t forget to hook only one say function to fix some chat problems

Code >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview