Forum

> > CS2D > Scripts > [ERROR] unexpected symbol (Solved)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [ERROR] unexpected symbol (Solved)

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt [ERROR] unexpected symbol (Solved)

DarkFireps2
User Off Offline

Zitieren
This is the code , Help me !

Spoiler >


the error is :

sys/lua/menusaylua.lua:1: unexpected symbol near '´'
1× editiert, zuletzt 15.03.17 19:21:07

alt Re: [ERROR] unexpected symbol (Solved)

Masea
Super User Off Offline

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

alt quote

DarkFireps2
User Off Offline

Zitieren
@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")

alt Re: [ERROR] unexpected symbol (Solved)

Yates
Reviewer Off Offline

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

alt Re: [ERROR] unexpected symbol (Solved)

Masea
Super User Off Offline

Zitieren
@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?
2× editiert, zuletzt 15.03.17 19:03:06

alt lel

DarkFireps2
User Off Offline

Zitieren
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


alt this is the code

DarkFireps2
User Off Offline

Zitieren
@user Masea:
Spoiler >


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

alt n :O

DarkFireps2
User Off Offline

Zitieren
@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

alt solved

DarkFireps2
User Off Offline

Zitieren
@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

alt Re: [ERROR] unexpected symbol (Solved)

Carnivohra
User Off Offline

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

Code >
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht