Wysłany: 2016-04-13, 22:46
Odważny
Początki LUA :P
Wiek: 25 Na forum: 3740 dni Posty: 140
Nick w MP: ReseT_
Piwa : 166
DB3:
ERROR: Loading script failed: wyrzucanie/kic.lua:15: ')' expected (to close '(' at line 1) near 'end'
Kod:
addCommandHandler ( "akick" , function( plr , cmd , target ,...)
local account = getPlayerAccount ( plr )
local accname = getAccountName ( account )
if isObjectInACLGroup ( "user." .. accname , aclGetGroup ( "Administracja" )) then
local reason = table . concat ({...}, " " )
if not target or not reason then
outputChatBox ( "* Uzyj: /akick nick/ID] [powod]" , plr )
return
end
if not target then outputChatBox ( "* Nie odnaleziono podanego gracza." , plr ) return end
outputChatBox ( "* " .. getPlayerName ( target ).. " zostal/a wyrzucony/a przez: " .. getPlayerName ( plr ).. ": " .. reason , root , 255 , 0 , 0 )
kickPlayer ( target , plr , reason )
end
end
end )
Stawiam piwa za poprawienie kodu
Podpis
[you]
, pomogłem Ci? Wynagrodź mnie
Wysłany: 2016-04-13, 22:47
_Wicek_
Majstersztyk
Wiek: 25 Na forum: 4261 dni Posty: 747
Nick w MP: Wicek
Piwa : 1841
addCommandHandler ( "akick" , function( plr , cmd , target ,...)
local account = getPlayerAccount ( plr )
local accname = getAccountName ( account )
if isObjectInACLGroup ( "user." .. accname , aclGetGroup ( "Administracja" )) then
local reason = table . concat ({...}, " " )
if not target or not reason then
outputChatBox ( "* Uzyj: /akick nick/ID] [powod]" , plr )
return
end
if not target then outputChatBox ( "* Nie odnaleziono podanego gracza." , plr ) return end
outputChatBox ( "* " .. getPlayerName ( target ).. " zostal/a wyrzucony/a przez: " .. getPlayerName ( plr ).. ": " .. reason , root , 255 , 0 , 0 )
kickPlayer ( target , plr , reason )
end
end )
Podpis
Support-Team: 25.01.2016
Moderator: 10.07.2016
GG: 51274621
Skype : kuba_wicinski
Wysłany: 2016-04-13, 22:49
Odważny
Początki LUA :P
Wiek: 25 Na forum: 3740 dni Posty: 140
Nick w MP: ReseT_
Piwa : 166
_Wicek_ , DB3;
ERROR: wyrzucanie/kic.lua:11: attempt to concatenate a boolean value
Podpis
[you]
, pomogłem Ci? Wynagrodź mnie
Wysłany: 2016-04-13, 23:31
Terr9909
Skrypter LUA
Wiek: 26 Na forum: 4235 dni Posty: 346
Nick w MP: Split
Piwa : 1043
Tagi: endy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: