Raised This Month: $51 Target: $400
 12% 

[Fixed] New Vex utility defines same name


  
 
 
Thread Tools Display Modes
Author Message
Prowler
Senior Member
Join Date: Nov 2004
Old 09-08-2004 , 10:09   [Fixed] New Vex utility defines same name
#1

When i was attempting to get invisible man to work with amx9.9 i noticed i needed to include the VexdUM_stock.inc, so i did that and then got these errors
Code:
C:\Heros\amx9.9\include\VexdUM_stock.inc(204) : error 021: symbol already defined: "IVecFVec"
C:\Heros\amx9.9\include\VexdUM_stock.inc(213) : error 021: symbol already defined: "FVecIVec"
Then went through the superheromod.inc and found the same defination names IVecFVec and IVecFVec

The code for them looks differnt to me, but may very well perform the same functions, im not sure either way

VexdUM_stock.inc
Code:
stock IVecFVec(iVec[3], Float:fVec[3])
{
	for(new a = 0; a < 3; a++)
	{
		fVec[a] = float(iVec[a])
	}
	return 1
}

stock FVecIVec(Float:fVec[3], iVec[3])
{
	for(new a = 0; a < 3; a++)
	{
		iVec[a] = floatround(fVec[a])
	}
	return 1
}
Superheromod.inc
#if !defined AMXX_VERSION
Code:
/* Changes an integer vec to a floating vec */
stock IVecFVec(IVec[3], Float:FVec[3])
{
	FVec[0] = float(IVec[0])
	FVec[1] = float(IVec[1])
	FVec[2] = float(IVec[2])

	return 1
}
/* Changes a float vec to an integer vec */
stock FVecIVec(Float:FVec[3], IVec[3])
{
	IVec[0] = floatround(FVec[0])
	IVec[1] = floatround(FVec[1])
	IVec[2] = floatround(FVec[2])

	return 1
}
I simply commented out that define from superheromod.inc as im not using AMXX. but i thought i best mention it for future reference
Prowler is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-08-2004 , 16:58  
#2

yeah if the AMX dev team had any brains at all they would include the vexdUM stock from the main vexd include.... but they didn't so..... rather than having the include the vexdum_stock into all the heroes that need that (and do a check for amx_new) I just left it like that, what you can do is change the define line to

Code:
#if !defined AMXX_VERSION || _vexdum_stock_included
then if the vexdum stock is included it will skip that part.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Prowler
Senior Member
Join Date: Nov 2004
Old 09-10-2004 , 22:47  
#3

Thanks for that jtp you should put that in the base script if you havent already, save people asking this question repeatdly

Edit: nvm, just realised it comes up with Undefined symbol if you add that and not have vexd stock included...
Prowler is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-11-2004 , 00:22  
#4

yeah sorry what I orginally posted didn't actually work.

After messing with it I got this to work

Code:
#if !defined AMXX_VERSION && !defined _vexdum_stock_included
that is part of the include now and will be in the next release
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Prowler
Senior Member
Join Date: Nov 2004
Old 09-11-2004 , 00:38  
#5

sweet thanks
Prowler is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode