Wezza
lua nOOb
- Joined
- May 31, 2008
- Messages
- 2,278
- Reaction score
- 31
Code:
./data/lib/cs_functions.lua:492: attempt to get length of local 'players' (a boolean value)
stack traceback:
./data/lib/cs_functions.lua:492: in function <./data/lib/cs_functions.lua:490>
Function:
Code:
function closeCs()
local players = getCsPlayers()
print(#players)
doBroadcastMessage("Counter-Strike is over! Total score: Terror: " .. getGlobalStorageValue(887786) .. ", Counter: " .. getGlobalStorageValue(887787) .. ". Next Counter-Strike: 22.00 CET tomorrow.", 22)
setGlobalStorageValue(888888, 0)
for _, cid in ipairs(players) do
leaveCs(cid)
end
end