[AMXX] Run time error 10 (plugin "topmodel.amxx") (native "cs_get_user_team") - debug not enabled!
L 09/15/2009 - 01:02:36: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Что не так?
Code
/* TopModel v0.1 */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <csx>
#define PLUGIN "TopModel"
#define VERSION "0.1"
#define AUTHOR "ZETA [M|E|N]"
new stats[8],rank
public plugin_init() {
register_plugin("TopModel","0.1","ZETA [M|E|N]")
register_event("ResetHUD","resetModel","b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/admin_c/admin_c.mdl")
precache_model("models/player/admin_t/admin_t.mdl")
}
public resetModel(id) {
rank=get_user_stats(id,stats,stats)
if(rank<=5) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) cs_set_user_model(id, "admin_t")
else if(userTeam == CS_TEAM_CT) cs_set_user_model(id, "admin_c")
else cs_reset_user_model(id)
}
return PLUGIN_CONTINUE
}
[r]