• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Linux Command /ban with an error!

Vrotz

Member
Joined
Apr 7, 2011
Messages
1,071
Reaction score
7
Location
Brazil
Hi guys,

in my server, when i use the command /ban to ban IP of player with a GOD (player group 6), the player get a ban n' logout. But i receive that message in my console:

PHP:
[4:27:46.980] [Error - CreatureScript Interface]
[4:27:46.980] data/creaturescripts/scripts/ban/finish.lua:onTextEdit
[4:27:46.980] Description:
[4:27:46.980] (luaGetPlayerNameByGUID) Player not found

[4:27:46.980] [Error - CreatureScript Interface]
[4:27:46.980] data/creaturescripts/scripts/ban/finish.lua:onTextEdit
[4:27:46.980] Description:
[4:27:46.980] data/creaturescripts/scripts/ban/finish.lua:225: attempt to concatenate a nil value
[4:27:46.980] stack traceback:
[4:27:46.980]   data/creaturescripts/scripts/ban/finish.lua:225: in function <data/creaturescripts/scripts/ban/finish.lua:10>

Whats wrong?

my script creature..
http://pastebin.com/4BcfWsk4

Bump...
 
Last edited by a moderator:
Hi guys,

in my server, when i use the command /ban to ban IP of player with a GOD (player group 6), the player get a ban n' logout. But i receive that message in my console:

PHP:
[4:27:46.980] [Error - CreatureScript Interface]
[4:27:46.980] data/creaturescripts/scripts/ban/finish.lua:onTextEdit
[4:27:46.980] Description:
[4:27:46.980] (luaGetPlayerNameByGUID) Player not found

[4:27:46.980] [Error - CreatureScript Interface]
[4:27:46.980] data/creaturescripts/scripts/ban/finish.lua:onTextEdit
[4:27:46.980] Description:
[4:27:46.980] data/creaturescripts/scripts/ban/finish.lua:225: attempt to concatenate a nil value
[4:27:46.980] stack traceback:
[4:27:46.980]   data/creaturescripts/scripts/ban/finish.lua:225: in function <data/creaturescripts/scripts/ban/finish.lua:10>
Are you sure you spelled the persons name right you are trying to ban?
 
change GetPlayerNameByGUID to getPlayerByName

I got this after change byname:
PHP:
[3:51:26.249] [Error - Event::checkScript] Cannot load script (data/creaturescripts/scripts/ban/finish.lua)
[3:51:26.249] data/creaturescripts/scripts/ban/finish.lua:83: ')' expected near 'getPlayerByName'
 
Back
Top