Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- if not aura_env.testtable then
- return ""
- end
- local i=1
- local j=1
- local cur = GetTime()
- local total = ""
- endBuff = endBuff or nil
- while aura_env.testtable[i] do
- local name = aura_env.testtable[i][1]
- local time = aura_env.testtable[i][2]
- if endBuff then
- for j=j,#aura_env.testtable do
- if aura_env.testtable[j][1] == endBuff then
- aura_env.testtable[j][3] = GetTime()
- endBuff = nil
- break
- end
- end
- end
- local sec = ""
- if aura_env.testtable[i][3] then
- sec = aura_env.testtable[i][3] - aura_env.testtable[i][2]
- else
- sec = cur - aura_env.testtable[i][2]
- end
- total = total..name..sec.."|n"
- i=i+1
- j=j+1
- end
- return "for: "..j.." while: "..i.."|n"..total
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement