Mam problem z pluginem którego planuje korzystać:
L 04/26/2012 - 20:23:21: Info (map "de_dust2x2") (file "addons/amxmodx/logs/error_20120426.log") L 04/26/2012 - 20:23:21: [FUN] Invalid player 1 L 04/26/2012 - 20:23:21: [AMXX] Run time error 10 (plugin "najrundyfant.amxx") (native "set_user_footsteps") - debug not enabled! L 04/26/2012 - 20:23:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 04/26/2012 - 20:25:25: [FUN] Invalid player 2 L 04/26/2012 - 20:25:25: [AMXX] Run time error 10 (plugin "najrundyfant.amxx") (native "set_user_footsteps") - debug not enabled! L 04/26/2012 - 20:25:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
SMA pluginu:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #include <cstrike> #include <fun> #define PLUGIN "" #define VERSION "1.0" #define AUTHOR "speedkill" new kills[33] new prezent[33] = false public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("Koniec", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "respawn", 1) register_event("DeathMsg","Death","a") } public client_connect(id) { prezent[id] = false; } public Koniec() { new players[32], num get_players(players, num) new rank[1] for(new i = 0; i < num; i++) { new id = players[i] if(kills[id] > rank[0]) { rank[0] = id } kills[i] = 0 } prezent[rank[0]] = true } public Death() { new iKiller = read_data(1) new iVictim = read_data(2) new a = get_user_team(iKiller) new b = get_user_team(iVictim) new c = is_user_connected(iKiller) new d = is_user_connected(iVictim) if(a != b && c && d) { kills[iKiller]++ } } public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) set_user_footsteps(id,1) } }
W czym leży problem?