Error Log
Quote:
L 10/13/2018 - 20:53:12: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20181013.log")
L 10/13/2018 - 20:53:12: Function is not present (function "client_connect") (plugin "Level_system2.amxx")
L 10/13/2018 - 20:53:12: [AMXX] Displaying debug trace (plugin "Level_system2.amxx", version "1.3")
L 10/13/2018 - 20:53:12: [AMXX] Run time error 10: native error (native "set_task")
L 10/13/2018 - 20:53:12: [AMXX] [0] text7awglx.sma::ChangeName (line 65)
L 10/13/2018 - 20:53:14: Function is not present (function "client_connect") (plugin "Level_system2.amxx")
L 10/13/2018 - 20:53:14: [AMXX] Displaying debug trace (plugin "Level_system2.amxx", version "1.3")
L 10/13/2018 - 20:53:14: [AMXX] Run time error 10: native error (native "set_task")
L 10/13/2018 - 20:53:14: [AMXX] [0] text7awglx.sma::ChangeName (line 65)
L 10/13/2018 - 21:02:50: Function is not present (function "client_connect") (plugin "Level_system2.amxx")
L 10/13/2018 - 21:02:50: [AMXX] Displaying debug trace (plugin "Level_system2.amxx", version "1.3")
L 10/13/2018 - 21:02:50: [AMXX] Run time error 10: native error (native "set_task")
L 10/13/2018 - 21:02:50: [AMXX] [0] text7awglx.sma::ChangeName (line 65)
|
Code :
PHP Code:
//------| Change Name |------//
public ChangeName(id, buffer)
{
if(!is_user_connected(id))
return FMRES_IGNORED;
static Name[32], Val[32];
get_user_name(id, Name, sizeof Name - 1);
engfunc(EngFunc_InfoKeyValue, buffer, "name", Val, sizeof Val - 1);
if(equal(Val, Name))
return FMRES_IGNORED;
set_task(0.2, "client_connect", id);
return FMRES_SUPERCEDE;
}