General > Developers Corner
Mute + Gag Time And Reason
iViscosity:
Okay I edited it. Remember I said I didn't test this, I was expecting you to figure out what was wrong with it.
I'm guessing chat.lua:253 is the ulx.fancyLogAdmin() call? If so, it was my fault, I put the call outside of the loop so "str" couldn't be found outside of the loop. I edited my first post, and it should work. Remember again, I haven't tested it.
As a side note, you can edit a post instead of making 3 separate posts.
BlizzardyFire:
Getting this now when i try using a time: ex: ulx gag ^ 500 test
--- Code: ---addons/ulx-master/lua/ulx/log.lua:479: bad argument #2 to 'format' (number expected, got string)
1. format - [C]:-1
2. unknown - addons/ulx-master/lua/ulx/log.lua:479
3. gsub - [C]:-1
4. fancyLogAdmin - addons/ulx-master/lua/ulx/log.lua:450
5. call - addons/ulx-master/lua/ulx/modules/sh/chat.lua:254
6. __fn - addons/ulib-master/lua/ulib/shared/commands.lua:943
7. unknown - addons/ulib-master/lua/ulib/shared/commands.lua:1296
8. Run - lua/includes/modules/concommand.lua:54
9. unknown - addons/ulib-master/lua/ulib/shared/commands.lua:1311
10. unknown - lua/includes/modules/concommand.lua:54
--- End code ---
BlizzardyFire:
Got it to work by adding time after target
BlizzardyFire:
thanks so much for the help
Navigation
[0] Message Index
[*] Previous page
Go to full version