View Single Post
Pescoxa
Member
Join Date: Dec 2009
Old 02-03-2011 , 10:41   Re: [L4D/L4D2] VS Bug Fix
Reply With Quote #6

Quote:
Originally Posted by MON@H Rasta View Post
Have error (((
Code:
L 01/03/2011 - 22:30:54: [SM] Native "SetConVarInt" reported: Invalid convar handle 0 (error 4)
L 01/03/2011 - 22:30:54: [SM] Displaying call stack trace for plugin "l4d_sm_vsbugfix.smx":
L 01/03/2011 - 22:30:54: [SM]   [0]  Line 73, l4d_sm_vsbugfix.sp::Init()
L 01/03/2011 - 22:30:54: [SM]   [1]  Line 296, l4d_sm_vsbugfix.sp::Event_Round_Start()
I've translated l4d_sm_vsbugfix.phrases.txt to Russian. Here it is:

Code:
"Phrases"
{
	//""Normal \x01 
	//""Verde \x03 
	//""Amarelo \x04 
	//""Verde \x05
	
	"BOTsAreUnfrozen"
	{
		"en"		"BOTs are unfrozen."
		"pt"		"BOTs estão descongelados."
		"ru"		"БОТы разморожены."
	}
	
	"GodOn"
	{
		"en"		"You had God Mode turned on."
		"pt"		"Você teve o modo Deus ativado."
		"ru"		"Вы включили режим Бога."
	}
	
	"GodOff"
	{
		"en"		"You had God Mode turned off."
		"pt"		"Você teve o modo Deus desativado."
		"ru"		"Вы отключили режим Бога."
	}
	
}
The error is in the line:

SetConVarInt(FindConVar("sb_all_bot_team"), 0);

That means:

FindConVar("sb_all_bot_team") returned 0.

Possible cause:

L4D/L4D2 ConVar "sb_all_bot_team" doesn't exist anymore in newer versions of the game.

Possible solution:

Just comment this line (with "//") and other with the same ConVar "sb_all_bot_team" or try to find a new ConVar that does the same thing.

I can't fix it for now...
Pescoxa is offline