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

Error in script

Kabum

New Member
Joined
Dec 22, 2015
Messages
3
Reaction score
0
[22/12/2015 00:21:18] Description:
[22/12/2015 00:21:18] ?:0: attempt to perform arithmetic on a boolean value
[22/12/2015 00:21:18] stack traceback:
[22/12/2015 00:21:18] ?: in function 'getPlayerExhaustion'

error line:
Code:
if getPlayerExhaustion(plaPos, 1011) > 0 then

tfs 0.3.6
 
Can you post the function for getPlayerExhaustion?
Probably somewhere in functions.lua or global.lua or such..
And give us the Definition of plaPos
 
You are checking if getPlayerExhaustion > 0 but it is returning true or false.

You can simply use:
Code:
if getPlayerExhaustion(plaPos, 1011) then
 
Back
Top