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

Lua Numerical Value Conversion Help

Sylania

New Member
Joined
Jan 3, 2011
Messages
39
Reaction score
0
Can someone show me how to convert true or false into numerical values?

example:

Lua:
for _, pid in ipairs(getPlayersOnline()) do
if(isPlayerSaving(cid) == true) then
msg = old number + 1

Help!
 
I just need to add up everytime it returns true for when it does a function for when it looks for the value on all the players online.
 
first i don't think there is isPlayerSaving function
but here is example
Lua:
local count = 0
for _, pid in ipairs(getPlayersOnline()) do
if(isPlayerSaving(cid) == true) then
count = count + 1
 
Back
Top