PDA

View Full Version : TeamMoney


bl4nk
03-23-2008, 14:41
TeamMoney
Add up all of a team's money and distribute it equally.

Plugin Based On:
The original AMXX Team Money plugin by Cheap_Suit (found here (http://forums.alliedmods.net/showthread.php?p=386650)).

CVars:
sm_teammoney_enable

0 = Disable the plugin
1 = Enable the pluginChangelog:

1.0.0
Initial release
1.0.1
Fixed plugin checking for client 0 on round start.
1.0.2
Fixed another occurance of the problem fixed in 1.0.1.
1.0.3
Fixed a final small bug.

franzcis066
03-24-2008, 04:45
Yeah i still have this errorL 03/24/2008 - 16:52:09: [SM] Native "PrintToChat" reported: Client index 0 is invalid
L 03/24/2008 - 16:52:09: [SM] Debug mode is not enabled for "Custom Plugins\teammoney.smx"
L 03/24/2008 - 16:52:09: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 19 on

bl4nk
03-24-2008, 06:26
Updated to Version 1.0.2

franzcis066
03-24-2008, 06:41
Sorry dude..T_T
L 03/24/2008 - 18:52:23: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/24/2008 - 18:52:23: [SM] Debug mode is not enabled for "Custom Plugins\teammoney.smx"
L 03/24/2008 - 18:52:23: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 19 on
L 03/24/2008 - 18:52:56: Error log file session closed.

bl4nk
03-24-2008, 12:31
Can you enable debug so I can see what line the problem is occuring on?

franzcis066
03-24-2008, 19:52
The problem occurs every round startL 03/25/2008 - 08:02:33: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/25/2008 - 08:02:33: [SM] Displaying call stack trace for plugin "Custom Plugins\teammoney.smx":
L 03/25/2008 - 08:02:33: [SM] [0] Line 112, /home/groups/alliedmodders/forums/files/2/8/8/5/0/24826.attach::timer_RoundStart()

V0gelz
03-24-2008, 20:01
you should try to compile the plugin with compile.exe that is included with sourcemod. I ones did the getplugin feature of the board and had the same error.

bl4nk
03-24-2008, 20:11
V0gelz: That's a problem that the server reports, not what the compiler reports.

franzcis066: Thanks for the line numbers, I'll check it out later.

bl4nk
03-24-2008, 23:35
Try out the version attached to this post. I don't want to spam the change log for small things like this.

franzcis066
03-25-2008, 05:18
Tested and working.. You can make that file official now.. There's no more errors! Thanks! I hope someone approves this..

bl4nk
03-25-2008, 16:51
Updated to Version 1.0.3

If you're using 1.0.2a (the one from my previous post), you don't need to update.