AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   why i can't get_user_info ? (https://forums.alliedmods.net/showthread.php?t=55312)

lucky109 05-19-2007 07:14

why i can't get_user_info ?
 
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

Deviance 05-19-2007 07:56

Re: why i can't get_user_info ?
 
Code:
client_print(id, print_chat, "[AMXX] fps_max: %d", getfps)
fps_max is a number, not a string.

lucky109 05-19-2007 08:23

Re: why i can't get_user_info ?
 
Quote:

Originally Posted by Deviance (Post 478231)
Code:
client_print(id, print_chat, "[AMXX] fps_max: %d", getfps)
fps_max is a number, not a string.

oh!! i see..thank you

_Master_ 05-19-2007 11:09

Re: why i can't get_user_info ?
 
I was unaware that there is a "fps_max" setinfo value...
Also "%s" is ok. If it doesn't show anything then read above.


All times are GMT -4. The time now is 10:38.

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