• 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!

TFS 1.X+ Doubt using and or in lua

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
the error is in this line
Code:
Premium: " .. player:isPremium() and 'Is' or 'Not' ..

How can i solve this line error?
Lua:
function onSay(player, words, param)

    player:popupFYI("Player Info!" ..
    "\nInitial Information: " ..
    "\nNick: " .. player:getName() ..
    "\nLevel: " .. player:getLevel() ..
    "\nPremium: " .. player:isPremium() and 'Is' or 'Not' ..
    "")

    return true
end


error:
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/info.lua:onSay
data/talkactions/scripts/info.lua:9: attempt to concatenate a boolean value
stack traceback:
        [C]: in function '__concat'
        data/talkactions/scripts/info.lua:9: in function <data/talkactions/scripts/info.lua:3>
 
Back
Top