Ulysses Stuff > Releases
AWarn2 - Advanced Warning Module
Norwegian:
Hey,
I'm getting this error on my server.
[ERROR] addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:2: 'then' expected near '='
1. unknown - addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:0
Any solutions?
MrPresident:
--- Quote from: Norwegian on September 16, 2015, 05:45:00 AM ---Hey,
I'm getting this error on my server.
[ERROR] addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:2: 'then' expected near '='
1. unknown - addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:0
Any solutions?
--- End quote ---
Yes, redownload the TTT module. There was a typo in the code. It should work now.
Norwegian:
Now the module works, but, it gives me this error when someone does actually teamkill.
--- Code: ---[ERROR] addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:6: attempt to call method 'GetRole' (a nil value)
1. fn - addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:6
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179
3. TakeDamageInfo - [C]:-1
4. unknown - gamemodes/terrortown/gamemode/player.lua:867
--- End code ---
MrPresident:
Are you using this module in a TTT server? The module you are having issues with is designed specifically for TTT.
GetRole only works in TTT.
Edit: Its possible that the player died from a non-player entity which would cause that error to happen. I changed the code to check for this.
If players are able to teamkill and not get warned, let me know the specifics of how they did it.
Norwegian:
Yes, I'm running it on a TTT server.
I'll try something though, you know how the folder for TTT is called terrortown? Well, maybe that's supposed to go into the gamemode name thing?
Edit: Well that made the module not run at all... Anyways, I tried the script again, was testing with two bots, and I shot the innocent bot as a innocent in the head with a shotgun. Gave me this error in console. I could try with real players aswell, but I doubt it'd make a difference.
--- Code: ---[ERROR] addons/awarn2/lua/autorun/sh_awarn.lua:109: attempt to index local 'target' (a number value)
1. awarn_getUser - addons/awarn2/lua/autorun/sh_awarn.lua:109
2. awarn_con_warn - addons/awarn2/lua/autorun/server/sv_awarn.lua:253
3. fn - addons/awarn2/lua/awarn/modules/auto_warn_ttt_teamkill.lua:9
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:179
5. FireBullets - [C]:-1
6. ShootBullet - gamemodes/terrortown/entities/weapons/weapon_tttbase.lua:318
7. PrimaryAttack - gamemodes/terrortown/entities/weapons/weapon_tttbase.lua:242
8. unknown - addons/tttdamagelogs/lua/damagelogs/sv_damageinfos.lua:46
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version