Hey, I was looking through the list of functions and while viewing the info for client_infochanged() I saw the following example code.
Code:
public client_infochanged(id)
{
new newname[32],oldname[32];
get_user_info(id, "name", newname,31);
get_user_name(id,oldname,31);
client_print(0,3,"%s has changed his name to %s",oldname,newname);
}
As I understand it, and I'm guessing I understand incorrectly, the get_user_info() line and the get_user_name() line do exactly the same thing. Therefore the newname and oldname strings would be exactly the same. If someone could explain to me how/why/if this code actually gets both the old and new names I would appreciate it.
__________________