hi all.
Help with a code..
I write a plugin which shows the information on a connection the player. It is a lot of such plugins, but I would like the.
Here a code part in which error:
Code:
new g_msgSayText
new g_msgTeamInfo
new advert[32]
#endif
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("pifc_advert", "xxxxxxxx.ua")
#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], ping[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, 31)
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)
}
}
The compiler is written that by an error here:
Code:
get_user_authid(id, steamid, 31)
Help...
Thanks.
PS.
I am a beginner!