Raised This Month: $ Target: $400
 0% 

get_user_userid help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kkthx
Junior Member
Join Date: Jun 2012
Old 06-27-2012 , 15:29   get_user_userid help
Reply With Quote #1

Hello, this one shows no userid, why?

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "uid"
#define VERSION "0.1"
#define AUTHOR "kkthx"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say uid","uid",1,"- Shows userid")
}

public 
uid(id) {
    if(!
is_user_connected(id)) {
        return 
PLUGIN_HANDLED
    
}

    
client_print(idprint_chat,"-> %s"get_user_userid(id))

    return 
PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1257\\ deff0\\ deflang1063{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 
kkthx is offline
 



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 06:12.


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