Forum

> > CS2D > Scripts > [request]how to edit this script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [request]how to edit this script

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt [request]how to edit this script

super123s
User Off Offline

Zitieren
hi/i 'm Agent /today i need some help for edit this script
i have admin .lua
Spoiler >

i want cmd arrest/free/kick for admin level2/3 use
so i change it to this
Spoiler >

     
                    
and i get some error
1
LUA ERROR:sys/lua/admin.lua:179'end' expected{to close 'function' at line 28.
please help me to edit it

alt Re: [request]how to edit this script

Apache uwu
User Off Offline

Zitieren
This is due to very crappy tabbing. You don't know how to tab at all.

Fixed.
Mehr >


Oh btw somewhere I saw

1
2
3
4
5
6
7
8
9
10
if player(pl,"exists") then
     local ip = player(pl, "ip")
     local usgn = player(pl, "usgn")
     if ip then
          parse("banip "..ip)
     end
     if usgn then
          parse("banusgn "..usgn)
     end
end

That's pointless because usgn will return 0, not nil. Just run those 2 parses normally and cs2d won't ban usgn 0.

EDIT: Excuse my tabbing in the [code][/code] my text editor is crappy
1× editiert, zuletzt 24.07.11 18:25:00
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht