Forum

> > CS2D > Scripts > Some thing wrong
Forums overviewCS2D overview Scripts overviewLog in to reply

English Some thing wrong

5 replies
To the start Previous 1 Next To the start

old Some thing wrong

Kirito2K
User Off Offline

Quote
Hi us .
I'm doing my script , but i see a problem in my script help me please .

https://dl-web.dropbox.com/get/admin-mod.lua?_subject_uid=187922988&w=AABdC9mtuxxZ9Xf-HiFYSkwZdnpF1RO48mkDuPHlYvNVcg

look at this .

and here is code .

Spoiler >

old Re: Some thing wrong

Mora
User Off Offline

Quote
Lua has written
parse('hudtxt2 '..id..' 6 " ©255255000"..game("sv_name")" 10 500')

this may get errors try replace to:
1
parse('hudtxt2 '..id..' 6 " ©255255000"..game("sv_name").." 10 500')
I see in your script multihook, "join" you have two...try make one with:
1
2
3
4
5
6
7
8
9
10
-- When join --
 addhook("join","adminiuserjoin")
 function adminiuserjoin(id)
 for _, usgn in ipairs(Admins) do
 if player(id,"usgn") == usgn then
 msg("©255128000 "..player(id,"name").." joined the server !@C")
 end
 end
 msg2(id,"Welcome on my Server, "..player(p,"name").."!")
 end
i dont see script full. try it for first time.

old Re: Some thing wrong

Kirito2K
User Off Offline

Quote
@user Sniper Killer: I know already -.- .
@user Mora: The hud text work good , the bug not in it .

the bug :LUA ERROR: sys/lua/admin-mod.lua:1089: 'end' expected (to close 'function' at line 83) near '<eof>'

that is the bug .

old Re: Some thing wrong

Mora
User Off Offline

Quote
you need add "end" somewhere, i can`t do it, because script soo long and search lines i will not.
Or so:
lua has written
blablablah
parse('makespec 29')
parse('makespec 30')
parse('makespec 31')
parse('makespec 32')
end
end
end

to
1
2
3
4
5
6
7
8
9
blablablah
 parse('makespec 29')
 parse('makespec 30')
 parse('makespec 31')
 parse('makespec 32')
 end
 end
 end
 end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview