ItsMods

Full Version: Thirdperson plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
If you just type !thirdperson without 0 or 1 behind it the server crashes... fix needed
se7en said he was gonna fix this
Also when you type !thirdperson 1 everyone in chat can see that you wrote that (you should use ChatType.ChatNone inside the if-brackets)
try /!thirdperson 1 , it worked on aiw
(01-06-2012, 17:20)Pozzuh Wrote: [ -> ]If you just type !thirdperson without 0 or 1 behind it the server crashes... fix needed

yes i updated it 2 hours ago.

Code:
if (Message.Substring(13) != "0" && Message.Substring(13) != "1")
                {
                    TellClient(Client.ClientNum, "^1Wrong value", true);
                }
(01-06-2012, 18:26)Se7en Wrote: [ -> ]
(01-06-2012, 17:20)Pozzuh Wrote: [ -> ]If you just type !thirdperson without 0 or 1 behind it the server crashes... fix needed

yes i updated it 2 hours ago.

Code:
if (Message.Substring(13) != "0" && Message.Substring(13) != "1")
                {
                    TellClient(Client.ClientNum, "^1Wrong value", true);
                }

Nope. This didn't fix the problem. The problem is that when you type "!thirdperson" the string has 12 characters, and you search for a value at 13 which doesn't exist, so the game crashes.
(01-06-2012, 18:41)Pozzuh Wrote: [ -> ]
(01-06-2012, 18:26)Se7en Wrote: [ -> ]
(01-06-2012, 17:20)Pozzuh Wrote: [ -> ]If you just type !thirdperson without 0 or 1 behind it the server crashes... fix needed

yes i updated it 2 hours ago.

Code:
if (Message.Substring(13) != "0" && Message.Substring(13) != "1")
                {
                    TellClient(Client.ClientNum, "^1Wrong value", true);
                }

Nope. This didn't fix the problem. The problem is that when you type "!thirdperson" the string has 12 characters, and you search for a value at 13 which doesn't exist, so the game crashes.

jariz said space between word and num counts as char
CSHARP Code
  1. else if (Message.Length<13)
  2. {
  3. TellClient(Client.ClientNum, "^1Wrong value", true);
  4. }
(01-06-2012, 18:23)OrangePL Wrote: [ -> ]try /!thirdperson 1 , it worked on aiw

thats just because someone made the plugin to work like that
You need to update it...
Doesn't work with the new version of mw3 Sad
Pages: 1 2