View Single Post
Author Message
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 03-04-2006 , 22:14   AMXX 1.70 with SHM compile quick notice.
Reply With Quote #1

If you decide to upgraded to AMXX 1.70 and MetaMod to MetaMod-p 1.19p28, and recompile the heroes using the CVS latest includes, you will get an error saying
Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// sh_agentzero.sma
// C:\HLServer\cstrike\addons\amxmodx\scripting\include\superheromod.inc(492) : er
ror 021: symbol already defined: "replace_all"
//
// 1 Error.
// Could not locate output file compiled\sh_agentzero.amx (compile failed).
//
// Compilation Time: 0.16 sec
// ----------------------------------------

Press enter to exit ...
the only to temporary fix this is go to the superheromod.inc (which is on line 491), just comment out the replace_all function.
Just find this function and comment it out.
Code:
stock replace_all(string[],len,what[],with[])
{
	new withlen,charnum = 0
	withlen = strlen(with)
	while ( replace( string[charnum],len,what,with) != 0) {
		charnum += contain(string[charnum],with) + withlen
	}
}
It should look like this after you comment it out.
Code:
//stock replace_all(string[],len,what[],with[])
//{
	//new withlen,charnum = 0
	//withlen = strlen(with)
	//while ( replace( string[charnum],len,what,with) != 0) {
		//charnum += contain(string[charnum],with) + withlen
	//}
//}
after all that, Save it, then try recompiling your heroes again, that a way to bypass that error for now.
__________________
My 1st plugin - Redirect SteamID
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot