Raised This Month: $ Target: $400
 0% 

get_user_ping error :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sage_UA
Junior Member
Join Date: Dec 2008
Old 12-21-2008 , 14:56   Re: get_user_ping error :(
Reply With Quote #3

Code:
new ping

#endif 

public plugin_init()
{   
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_cvar("pifc_advert", "www.site.net")
    
    #if defined ANN2CHAT
    g_msgSayText = get_user_msgid("SayText")
    g_msgTeamInfo = get_user_msgid("TeamInfo") 
    #endif
}
    
public client_authorized(id)
{
    if (!is_user_bot(id))
    {
        static name[32], userip[32], steamid[32]
        get_user_name(id, name, sizeof name -1)
        get_user_ip(id, userip, sizeof userip -1, 1)
        get_user_authid(id, steamid, 31)
        get_user_ping(id, ping)
        get_cvar_string("pifc_advert", advert, 31)
        colorChat(0, CHATCOLOR_GREEN, "[SERVER] ^x03%s^x04 ^x03 [IP: %s]^x04 ^x03 [SteamID: %s]^x04 - connected.. PING: %d", name, userip, steamid, ping)
        colorChat(0, CHATCOLOR_BLUE, "[SERVER] %s", advert)
    }    
}
1 - does not compile (Error on the same line)
2 - That such "loss"?

Last edited by Sage_UA; 12-21-2008 at 16:58.
Sage_UA 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 09:05.


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