Forum

> > CS2D > Scripts > Some thing wrong
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Some thing wrong

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Some thing wrong

Kirito2K
User Off Offline

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

alt Re: Some thing wrong

Mora
User Off Offline

Zitieren
Lua hat geschrieben
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.

alt Re: Some thing wrong

Kirito2K
User Off Offline

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

alt Re: Some thing wrong

Mora
User Off Offline

Zitieren
you need add "end" somewhere, i can`t do it, because script soo long and search lines i will not.
Or so:
lua hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht