English [ERROR] unexpected symbol (Solved)

16 replies
Goto Page
To the start Previous 1 Next To the start
Up
DarkFireps2
User
Offline Off
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
15.03.17 06:26:31 pm
Up
Masea
Super User
Offline Off
Code:
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.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (27)
15.03.17 06:35:52 pm
Up
DarkFireps2
User
Offline Off
@user Masea:
Still not working, thanks also
15.03.17 06:42:50 pm
Up
Masea
Super User
Offline Off
What is the not working thing here exactly? I couldn't see any else unless the one I've already fixed, anybody could?
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (27)
15.03.17 06:46:29 pm
Up
DarkFireps2
User
Offline Off
@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")
15.03.17 06:49:26 pm
Up
Yates
Reviewer
Offline Off
@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.
15.03.17 06:56:21 pm
Up
Masea
Super User
Offline Off
@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
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (27)
15.03.17 06:58:33 pm
Up
DarkFireps2
User
Offline Off
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


15.03.17 07:00:24 pm
Up
Masea
Super User
Offline Off
Just warning, check my last comment again, I just asked there something to ya.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (27)
15.03.17 07:02:31 pm
Up
DarkFireps2
User
Offline Off
@user Masea:
Spoiler >


error :
sys/lua/menusaylua.lua:1: unexpected symbol near '´'
15.03.17 07:06:49 pm
Up
Masea
Super User
Offline Off
@user DarkFireps2: Well, the fucking hell are you in? Can't help because there is nothing can be helped.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (27)
15.03.17 07:08:58 pm
Up
DarkFireps2
User
Offline Off
@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
15.03.17 07:16:05 pm
Up
Goo
User
Offline Off
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)?
15.03.17 07:24:10 pm
Up
DarkFireps2
User
Offline Off
@user Goo:
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
15.03.17 07:28:08 pm
Up
Carnivohra
User
Offline Off
I can´t find the wrong symbol, but don´t forget to hook only one say function to fix some chat problems

Code >
15.03.17 08:24:01 pm
Up
Yates
Reviewer
Offline Off
@user Masea: Oh lol! My bad for thinking no one uses more than one say hook and not looking further
15.03.17 08:46:34 pm
Up
Masea
Super User
Offline Off
@user Yates: Ikr. I really was extirpating the truth while I was telling he is in the hell
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (27)
To the start Previous 1 Next To the start