L **/**/**** - **:**:**: [AMXX] Run time error 10 (plugin "*****_*****.amxx") (native "set_user_maxspeed") - debug not enabled
Code:
public fw_CmdStart(id) {
if ((is_user_alive( id ) && get_user_weapon( id ) == CSW_KNIFE) && (pev(id, pev_button) & IN_ATTACK)) {
set_user_maxspeed(id, 900.0)
client_cmd(id, "+forward")
set_task(0.3,"rmvSpeed")
}
return PLUGIN_HANDLED
}
public rmvSpeed(id) {
client_cmd(id, "-forward")
set_user_maxspeed(id,320.0)
}