Raised This Month: $ Target: $400
 0% 

why i can't get_user_info ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 05-19-2007 , 07:14   why i can't get_user_info ?
Reply With Quote #1

Code:
#include <amxmodx>

public plugin_init() {
	register_clcmd("test","test",ADMIN_LEVEL_B,"test")
	register_plugin("test", "test", "test");
	return PLUGIN_HANDLED;
}

public test(id) {
new getfps[32] 
get_user_info(id, "fps_max", getfps, 31) 
client_print(id, print_chat, "[AMXX] fps_max: %s", getfps)
}
why i can't get player's fps_max ?
it's show [AMXX] fps_max: in game
lucky109 is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 05-19-2007 , 07:56   Re: why i can't get_user_info ?
Reply With Quote #2

Code:
client_print(id, print_chat, "[AMXX] fps_max: %d", getfps)
fps_max is a number, not a string.
Deviance is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 05-19-2007 , 08:23   Re: why i can't get_user_info ?
Reply With Quote #3

Quote:
Originally Posted by Deviance View Post
Code:
client_print(id, print_chat, "[AMXX] fps_max: %d", getfps)
fps_max is a number, not a string.
oh!! i see..thank you

Last edited by lucky109; 05-19-2007 at 08:54.
lucky109 is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 05-19-2007 , 11:09   Re: why i can't get_user_info ?
Reply With Quote #4

I was unaware that there is a "fps_max" setinfo value...
Also "%s" is ok. If it doesn't show anything then read above.
_Master_ is offline
Reply



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 10:38.


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