Bullet ProoF
New Member
- Joined
- Jan 14, 2014
- Messages
- 22
- Reaction score
- 0
Having trouble using a script that welcomes a player into server and gives him a summary of how the server is like this thread: http://otland.net/threads/welcome-book-script.172518/#post-1673907
The code I'm trying to use is this:
Using TFS 2.15
my error is:
attempt to call global 'doItemSetAttribute' (a nil value)
[11/06/2014 18:22:48] stack traceback:
[11/06/2014 18:22:48] [C]: in function 'doItemSetAttribute'
[11/06/2014 18:22:48] data/creaturescripts/scripts/login.lua:5: in function <data/creaturescripts/scripts/login.lua:1>
HELP! REP will DEFINITELY HAPPEN!
The code I'm trying to use is this:
Code:
if getPlayerStorageValue(cid, 55555) == -1 then
setPlayerStorageValue(cid, 55555, 1)
local text = 'First line\nSecond line\nThird line.'
doItemSetAttribute(doPlayerAddItem(cid, 1950, 1), 'text', text)
end
Using TFS 2.15
my error is:
attempt to call global 'doItemSetAttribute' (a nil value)
[11/06/2014 18:22:48] stack traceback:
[11/06/2014 18:22:48] [C]: in function 'doItemSetAttribute'
[11/06/2014 18:22:48] data/creaturescripts/scripts/login.lua:5: in function <data/creaturescripts/scripts/login.lua:1>
HELP! REP will DEFINITELY HAPPEN!