Xagul
deathzot.net
- Joined
- Jun 30, 2008
- Messages
- 1,295
- Solutions
- 3
- Reaction score
- 1,043
Hello I am trying to simply determine if a string contains somthing and for some reason it will not work, it keeps sending me the error:
I am currently using this:
Code:
[6:45:22.246] data/actions/scripts/tools/unid.lua:5: bad argument #1 to 'find' (string expected, got nil)
I am currently using this:
Code:
itemdesc = getItemAttribute(itemEx.uid, "description")
if(string.find(itemdesc, 'hello') ~= nil) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "true")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "false")
end