AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How To Fix (https://forums.alliedmods.net/showthread.php?t=320957)

NooTy 01-17-2020 13:19

How To Fix
 
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)
}


Bugsy 01-17-2020 17:48

Re: How To Fix
 
Add ' debug' after the plugin in plugins.ini


All times are GMT -4. The time now is 02:45.

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