new g_fRate,g_fUpdate,g_fC4timer,g_fRTime,g_sHost name
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
g_fRate=get_cvar_pointer("sv_maxrate")
g_fUpdate=get_cvar_pointer("sv_maxupdaterate" )
g_fC4timer=get_cvar_pointer("mp_c4timer")
g_fRTime=get_cvar_pointer("mp_roundtime")
g_sHostname=get_cvar_pointer("hostname")
}
public client_putinserver(id)
{
if(is_user_bot(id))
return PLUGIN_HANDLED
set_task(10.0,"server_info",id)
return PLUGIN_HANDLED
}
public server_info(id)
{
new szHostname[64]
new float:fRate=get_pcvar_float(g_fRate)
new float:fUpdate=get_pcvar_float(g_fUpdate)
new float:fC4timer=get_pcvar_float(g_fC4timer)
new float:fRTime=get_pcvar_float(g_fRTime)
get_pcvar_string(g_sHostname, szHostname, charsmax(szHostname))
server_cmd("say rate : %0.f , Updaterate : %.0f , C4Timer : %.0f , RoundTime : %.0f , Hostname : %s ",fRate,fUpdate,fC4timer,fRTime,szHostnam e)
}
[/CODE]
Now I am getting
argument type mismatch error