Hej,
Mam do was ogromną prośbę Potrzebuję pomocy z wyeliminowaniem jednego loga.
L 02/03/2016 - 11:41:05: Start of error session. L 02/03/2016 - 11:41:05: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20160203.log") L 02/03/2016 - 11:41:05: [ENGINE] Invalid player 2 (not in-game) L 02/03/2016 - 11:41:05: [AMXX] Displaying debug trace (plugin "bf2rank.amxx") L 02/03/2016 - 11:41:05: [AMXX] Run time error 10: native error (native "find_sphere_class") L 02/03/2016 - 11:41:05: [AMXX] [0] badgepowers.inl::explosion (line 71)
Część kodu badgepowers.inl: new numfound = find_sphere_class(id, "player", 150.0, entlist, 32);
public explosion(id) { if ( !value[cvarbadgesactive] || !value[cvarbadgepowers] ) return HAM_IGNORED; if ( is_user_hltv(id) ) return HAM_IGNORED; new entlist[33]; new damage = g_PlayerBadges[id][BADGE_DEATH]*value[cvarpower_badge13]; new numfound = find_sphere_class(id, "player", 150.0, entlist, 32); for (new i=0; i < numfound; i++) { new pid = entlist[i]; if (is_user_alive(pid) && get_user_team(id) != get_user_team(pid)) fakedamage(pid, "explosion", damage*1.0, DMG_BLAST); if (!is_user_alive(pid) && get_user_team(id) != get_user_team(pid)) { new awardauthid[35]; get_user_name(pid,awardauthid,34); set_user_frags(id, get_user_frags(id)+1); totalkills[id]++; ColorChat(id,GREEN,"[BF2]^x01 Zabiles^x04 %s^x01 wyrzuconym po smierci granatem.",awardauthid); } }