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

AMX Mod X 0.15 Released


Post New Thread Closed Thread   
 
Thread Tools Display Modes
BAILOPAN
Join Date: Jan 2004
Old 03-15-2004 , 22:10  
#11

get_user_wonid returned 0. It's a dummy function not used even in AMX Mod.

set_hitzones does set_user_hitzones for all players and wasn't needed.
__________________
egg
BAILOPAN is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-15-2004 , 22:32   Ok...
#12

Quote:
Originally Posted by BAILOPAN
get_user_wonid returned 0. It's a dummy function not used even in AMX Mod.

set_hitzones does set_user_hitzones for all players and wasn't needed.
Oh I thought get_user_wonid would be nice to have though...
or is there something else that does it already?
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
BAILOPAN
Join Date: Jan 2004
Old 03-15-2004 , 22:37  
#13

get_user_authid
__________________
egg
BAILOPAN is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-15-2004 , 22:52   oh ok
#14

Quote:
Originally Posted by BAILOPAN
get_user_authid
Ok Thanx Bail...

As Always.. Your a charm..
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
rACEmic
Junior Member
Join Date: Mar 2004
Old 03-15-2004 , 23:43  
#15

I think there's an error in xtrafun.inc:

Code:
stock find_entity(start_from_ent, category, value[]) {
	switch (category) {
		case target: return find_entity_by_target(start_from_ent, value)
		case targetname: return find_ent_by_tname(start_from_ent, value)
	}
	return find_entity_by_class(start_from_ent, value)
}
should be:

Code:
stock find_entity(start_from_ent, category, value[]) {
	switch (category) {
		case target: return find_ent_by_target(start_from_ent, value)
		case targetname: return find_ent_by_tname(start_from_ent, value)
	}
	return find_ent_by_class(start_from_ent, value)
}
Without this change xtrafun won't compile. Am I right or did I just hack it in a way to get it to compile?
__________________
T3 HOUSTON Server Utilities:
Steam ID Finder
Warcraft 3 On-the-Fly Compilation
rACEmic is offline
BAILOPAN
Join Date: Jan 2004
Old 03-15-2004 , 23:52  
#16

You are indeed correct...
__________________
egg
BAILOPAN is offline
BAILOPAN
Join Date: Jan 2004
Old 03-16-2004 , 00:54  
#17

You can get the fixed xtrafun.inc from the CVS:
xtrafun.inc
__________________
egg
BAILOPAN is offline
mICKE
Member
Join Date: Mar 2004
Location: Sthlm, Sweden
Old 03-16-2004 , 01:54  
#18

I have found a thing in core.ini:
"amx_plugins addons/amxx/plugins/plugins.ini"
it shall be
"amx_plugins addons/amxx/plugins.ini"
because plugins.ini doesn't lay in plugins

EDIT: and why are there two modules.ini and two plugins.ini?
one at addons/amxx and one in /configs/
mICKE is offline
Send a message via ICQ to mICKE
BAILOPAN
Join Date: Jan 2004
Old 03-16-2004 , 03:02   /\//\
#19

It's a packaging error on my part. I'll fix the packages for the new xtrafun.inc and remove the extra plugins.ini+modules.ini tomorrow.

Note: The plugins.ini and modules.ini in the basedir are the correct ones.
__________________
egg
BAILOPAN is offline
XAD
Senior Member
Join Date: Mar 2004
Location: Sweden
Old 03-16-2004 , 03:27  
#20

Quote:
Originally Posted by BAILOPAN
get_user_authid
Well not really... get_user_wonid returned a number, which causes problem with Steam as it is a string. Therefore get_user_wonid returns 0 for Steam users. The get_user_authid supports both but it always returns a string, ie wonid's are returned as a string of digits.

If your code depend on wonid's as numbers (ie one cell) you need to change it to use strings insted (ie array of cells).

If you still have old plugins using get_user_wonid, one simple way to fix it is to add a new function, at the top of the plugins or in one of the includes, which is called get_user_wonid but is calling get_user_authid and then return the converted string to number value of it.

/X
XAD is offline
Closed Thread


Thread Tools
Display Modes

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 08:20.


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