View Single Post
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