01-06-2012, 17:20
Pages: 1 2
01-06-2012, 18:07
se7en said he was gonna fix this
01-06-2012, 18:14
Also when you type !thirdperson 1 everyone in chat can see that you wrote that (you should use ChatType.ChatNone inside the if-brackets)
01-06-2012, 18:23
try /!thirdperson 1 , it worked on aiw
01-06-2012, 18:26
(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:41
(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:54
(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
01-06-2012, 18:56
CSHARP Code
- else if (Message.Length<13)
- {
- TellClient(Client.ClientNum, "^1Wrong value", true);
- }
01-06-2012, 19:04
(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
02-11-2012, 20:15
You need to update it...
Doesn't work with the new version of mw3
Doesn't work with the new version of mw3
Pages: 1 2