English Bug say for all

12 replies
Goto Page
To the start Previous 1 Next To the start
28.02.14 09:25:29 pm
Up
Pamoon
User
Offline Off
Hi guys again, there is a problem of my level script...
Code:
1
2
3
4
5
addhook("say","saylv")
function saylv(id,txt)
msg(""..player(id,"name").." [Lv "..lvm[id_t1].."]: ©255220000"..txt)
return 1
end

Please help. No admin (usgn)! CT,T and all can chats...
IMG:http://upimage.us/server/php/files/3%20%2813%29.PNG
28.02.14 09:27:27 pm
Up
Alistaire
User
Offline Off
You have multiple sayhooks.
IMG:http://i.imgur.com/5zhwOTP.png
28.02.14 09:34:31 pm
Up
DC
Admin
Offline Off
Either combine all say-stuff in one single function which you add to the say-hook or use the priority-parameter of cs2d lua cmd addhook to prioritize the function which uses return.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
28.02.14 09:43:02 pm
Up
_Yank
User
Offline Off
Will try to help you using the easiest method...

@file cs2d Improved AddHook 2 (5)
Dont change anything on your code. Just dofile the script in the server.lua file.
03.03.14 05:31:33 am
Up
Bleach
User
Offline Off
If you do not use other sayhooks try it
Code:
1
2
3
4
5
addhook("say","saylv")
function saylv(id,txt)
    msg(player(id,"name").." [Lv "..lvm[id_t1].."]: ©255220000"..txt)
    return 1
end
03.03.14 12:50:30 pm
Up
Pamoon
User
Offline Off
@user Bleach:
Not work
03.03.14 02:59:03 pm
Up
Rainoth
Moderator
Offline Off
Code:
1
2
3
4
5
addhook("say","saylv",420)
function saylv(id,txt)
    msg(player(id,"name").." [Lv "..lvm[id_t1].."]: ©255220000"..txt)
    return 1
end


Try this.
03.03.14 03:06:40 pm
Up
NeverLast
User
Offline Off
Code:
1
2
3
4
5
addhook("say","saylv",420)
function saylv(id,txt)
    msg(player(id,"name") .. " [Lv " .. lvm[id_t1] .. "]: ©255220000" .. txt)
    return 1
end
IMG:http://www.sloganizer.net/style3,NeverLast.png
03.03.14 03:41:52 pm
Up
Marcell
Super User
Offline Off
Why posted same like @user Rainoth did?

Thats totally same, you just put some spaces... needless
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu
04.03.14 01:35:48 am
Up
Pamoon
User
Offline Off
IMG:http://s7.postimg.org/6a6wq1ce1/New_Bitmap_Image.png
04.03.14 09:22:15 am
Up
Rainoth
Moderator
Offline Off
user Marcell has written:
Why posted same like @user Rainoth did?

Thats totally same, you just put some spaces... needless


People prefer more space. Let him be
04.03.14 01:42:55 pm
Up
MikuAuahDark
User
Offline Off
No matter which code you're using, it always same, buggy.
Actually, your problem is
user Alistaire has written:
You have multiple sayhooks.

To fix it
user DC has written:
Either combine all say-stuff in one single function which you add to the say-hook or use the priority-parameter of cs2d lua cmd addhook to prioritize the function which uses return.
file cs2d LuaJIT for Dedicated Server (13) JIT POWER! | Know your Lua errors! | Part of LÖVE development team since 11.3
05.03.14 02:55:39 am
Up
Pamoon
User
Offline Off
thx every one
To the start Previous 1 Next To the start