Hello!
I would like this message to be in MESSAGE_EVENT_ADVANCE
But i cant get it to work, im getting this error:
line
I would like this message to be in MESSAGE_EVENT_ADVANCE
But i cant get it to work, im getting this error:
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/others/zombieEventDeath.lua:onPrepareDeath
data/creaturescripts/scripts/others/zombieEventDeath.lua:50: attempt to call loc
al 'playerName' (a string value)
stack traceback:
[C]: in function 'playerName'
data/creaturescripts/scripts/others/zombieEventDeath.lua:50: in function
<data/creaturescripts/scripts/others/zombieEventDeath.lua:20>
line
Code:
Game.broadcastMessage(string.format("%d place goes to %s of Zombie Event.", count, playerName(), MESSAGE_EVENT_ADVANCE))