Next21 team kill assists plugin error

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
290
Реакции
28
Помог
2 раз(а)
Ошибка
L 11/18/2019 - 20:22:29: Start of error session.
L 11/18/2019 - 20:22:29: Info (map "awp_garden") (file "addons/amxmodx/logs/error_20191118.log")
L 11/18/2019 - 20:22:29: [CSTRIKE] Invalid player 28 (not in-game)
L 11/18/2019 - 20:22:29: [AMXX] Displaying debug trace (plugin "next21_kill_assist.amxx", version "0.9")
L 11/18/2019 - 20:22:29: [AMXX] Run time error 10: native error (native "cs_get_user_money")
L 11/18/2019 - 20:22:29: [AMXX] [0] next21_kill_assist.sma::Ham_PlayerKilled_Pre (line 125)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5263 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Oct 27 2019 16:23:31
Built from: https://github.com/alliedmodders/amxmodx/commit/15a14a0
Build ID: 5263:15a14a0
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.692-dev
Build date: 18:58:01 Sep 21 2019 (1988)
Build from: https://github.com/dreamstalker/rehlds/commit/e7232be
ReGamedll
ReGameDLL version: 5.12.0.425-dev
Build date: 08:48:23 Nov 2 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/fd06d65
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.11.0.190-dev pl5 ANY Never
[11] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl5 ANY ANY
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[13] Hide Cvars RUN - hidecvars_amxx_i386.so v1.0 pl5 ANY ANY
[14] AuthEmu RUN - authemu_amxx_i386.so v4.2.12.265-dev+m pl5 ANY Never
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[17] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[19] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[20] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[21] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[22] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl5 ANY ANY
22 plugins, 22 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Discord Chat Relay 1.0 endnch AMXX-Server-Rel running
[ 2] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 3] FreshBans 1.4.3b kanagava fresh_bans_143_ running
[ 4] [ReAPI] Anti overflow 1.0 Some Author antioverflow.am running
[ 5] Damager 0.0.6 steelzzz damager.amxx running
[ 6] Advanced Mute 2.1 OciXCrom crx_advmute.amx running
[ 7] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 8] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 9] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 10] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 11] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 12] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 13] AES Bonus: Flags 0.2 Sonyx aes_bonus_flags running
[ 14] Top Awards 1.0 neygomon top_awards.amxx running
[ 15] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 16] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am debug
[ 17] Admin Load 3.9.3 Dev F@nt0M adminload.amxx running
[ 18] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 19] Lista admini (amx_who) cs.area-ga Kobra whobun.amxx running
[ 20] Accuracy Fix 3.0 Numb accuracy_fix.am running
[ 21] unknown unknown unknown flash.amxx running
[ 22] Team Transfer 2.1 UnFoRgIvEn transfer_chat.a running
[ 23] MOTD Commands 1.3 OciXCrom crx_motdcommand running
[ 24] Motd System 1.0 Hypa_[KZ] motd_system.amx running
[ 25] Admin Commands 1.9.0.5241 AMXX Dev Team admincmd.amxx running
[ 26] Commands Menu 1.10.0.537 AMXX Dev Team cmdmenu.amxx running
[ 27] Menus Front-End 1.10.0.537 AMXX Dev Team menufront.amxx running
[ 28] SHOW IP + LAST IP 2.0 Alka + x amx_showip_last running
[ 29] Players Menu 1.7 neugomon players_menu.am running
[ 30] Pause Plugins 1.10.0.537 AMXX Dev Team pausecfg.amxx running
[ 31] Admin Help 1.9.0.5241 SPiNX adminhelp.amxx running
[ 32] Language Menu 1.0 F@nt0M langmenu.amxx running
[ 33] Plugin Menu 1.10.0.537 AMXX Dev Team pluginmenu.amxx running
[ 34] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx running
[ 35] Private Message: Core 1.4 Denzer private_message debug
[ 36] Private Message: Loggi 1.3 Denzer private_message running
[ 37] Items Restrict 1.1 s1lent items_restrict. running
[ 38] Best Player MOTD 1.2.1 OciXCrom crx_bestplayer. running
[ 39] Simple Menu 2.1.1 OciXCrom crx_simplemenu. debug
[ 40] Restricted Names 1.1 Hattrick JM3Ch3R nick.amxx running
[ 41] Whatsapp_Group_Request 3.2 CrAzY MaN whatsapp_group_ running
[ 42] Quick and No Scope Det 1.2 EFFx QuickNoScopeD.a running
[ 43] Christmas hat 0.3 AMXX.Shop christmas_hat_r running
[ 44] SERVER TASKS 2.0 HATTRICK (HTTRCK server_tasks.am running
[ 45] Bet 2.2 Filip Vilicic bet.amxx running
[ 46] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 47] Stats Configuration 1.10.0.537 AMXX Dev Team statscfg.amxx running
[ 48] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 49] Style C4 Timer 3.0 OciXCrom crx_c4timer.amx running
[ 50] Ping Faker 1.5a MeRcyLeZZ pingfaker_count running
[ 51] unknown unknown unknown fake.amxx running
[ 52] Ultimele Harti 1.0 M@$t3r_@dy harti.amxx running
[ 53] CFG Slash 1.0 aNNakin cfg_slash.amxx running
[ 54] [ReAPI] TopRoundDamage 1.0.5 Dager* *.* -G- damage_round.am running
[ 55] Fall Damage HP Restore 0.0.1 Vaqtincha FallDamageHpRes running
[ 56] WeaponState Remember 0.0.4 Vaqtincha weaponstate_rem running
[ 57] Objective as GameName 1.1.1 CHEL74 obj_as_gamename running
[ 58] Activitate Admini 2.0c Askhanar activitate.amxx running
[ 59] ResetScore 1.0 Leo_[BH] resetscore_reap running
[ 60] Reklama 09.07.2019 mx?! reklama.amxx running
[ 61] [SQL] Chat Manager 1.1.1-13 Mistrick chatmask.amxx running
[ 62] Auto Round Restart 1.0 LondoN eXtream restartr.amxx running
[ 63] Simple Online Logger 23.05.19 mx?! simple_online_l running
[ 64] Trial Access 05.07.19 mx?! trial_access.am running
[ 65] Slap/Slay Team 1.0 Kobra slaylslapteam.a running
[ 66] VIP Menu [CS.AREA-GAME 0.15 Leo_[BH](tradus vip_reapi.amxx debug
[ 67] VIP NOU 1.0 test vampire.amxx running
[ 68] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 69] Check Vip 2.0 Leo_[BH] check.amxx running
[ 70] Slay Losers 1.1.6 [email protected] slay_losers.amx running
[ 71] Map Manager: Core 3.0.0 Mistrick map_manager_cor running
[ 72] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 73] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 74] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 75] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 76] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 77] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 78] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 79] Map Manager: Advanced 0.0.4 Mistrick map_manager_adv running
[ 80] FocusOnVotemap 1.2.1 Boec[SpecOPs] focus_on_votema running
[ 81] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 82] Team Select 1.5.0 F@nt0M teamselect.amxx running
[ 83] Force Gag 1.2 zorken zilla_gag.amxx running
[ 84] ReParachute 1.1 PurposeLess reparachute.amx running
[ 85] [ReAPI:AMXX] Buy Nades 0.2 F@nt0M Buy_Nades_Timeo debug
[ 86] Voiceserver Connect 1.1.015 Nextra voiceserver_con debug
[ 87] Advanced Kill Assists 0.9 Spection next21_kill_ass debug
[ 88] Hide 1.1 xPaw hidexpaw.amxx running
[ 89] M_AntiRusher 2.83 Miczu xPaw_Antirusher running
[ 90] Advanced Eliminate 0.1.5 Askhanar advanced_elimin running
[ 91] Admin Exec 2.0c Askhanar amx_exec.amxx running
[ 92] Say Me And HP 1.0 Javekson say_me_hp.amxx running
[ 93] Save score & money 1.2.4 Minni Mouse Save_Score_and_ running
[ 94] Night VIP 1.0 TBONTB vipfreenoaptea. running
[ 95] Boost Server Payment 1.0 JazZ. boostsv.amxx running
[ 96] Discord Reports 0.2 paffgame discord.amxx running
[ 97] Hostname Timeleft 1.0 xPaw HostnameTimelef running
[ 98] AuthEmu API 1.0 Dev-MS Team authemu.amxx running
[ 99] GSClient: Money Bonus 1.0.0 brody gsclient_money_ running
[100] New Plug-In 1.0 Author ninsoare.amxx running
100 plugins, 100 running
Автор плагина
Spection
Версия плагина
0.9
Исходный код
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define is_user_valid(%0) (%0 && %0 < g_iMaxPlayers)
#define MAXPLAYERS 32
#define MAXLENGTH 28
#define linux_diff_player 5
#define m_iTeam 114
#define m_iDeaths 444

#define DAMAGE_FOR_ASSIST 50 // Сколько процентов урона от хп надо нанести игроку, чтобы засчитало помощь в убийстве
#define MONEY_FOR_ASSIST 100 // Сколько денег платить игроку, совершившему помощь в убийстве. Если сумма меньше или равна нулю, то тогда оплаты не будет.
#define FRAGS_FOR_ASSIST // Объявите, чтобы игроку, помогшему в убийстве начислялся фраг
//#define FFA // Объявите, если Ваш сервер использует FFA режим.
//#define HLTV_FIX // Объявие, если Ваш сервер использует HLTV прокси.

#if MONEY_FOR_ASSIST > 0
#define MAXMONEY 16000 // Максимальное количество денег, при котором помощник по убийству больше не будет получать денежное вознаграждение
#include <cstrike>
#endif

//#define DEBUG

#if AMXX_VERSION_NUM < 183
#define client_disconnected client_disconnect
#endif

enum _:PLAYER_DATA
{
DAMAGE_ON[MAXPLAYERS + 1],
ASSISTANT_NAME[32],
ASSISTANT,
MAXHEALTH,
CONNECTED,
TEAM
}

new g_ePlayerData[MAXPLAYERS + 1][PLAYER_DATA], g_iMaxPlayers, HamHook:g_pHamSpawnPost

public plugin_init()
{
register_plugin("Advanced Kill Assists", "0.9", "Spection")
RegisterHam(Ham_TakeDamage, "player", "Ham_PlayerTakeDamage_Pre", false)
RegisterHam(Ham_Killed, "player", "Ham_PlayerKilled_Pre", false)
DisableHamForward((g_pHamSpawnPost = RegisterHam(Ham_Killed, "player", "Ham_PlayerKilled_Post", true)))
RegisterHam(Ham_Spawn, "player", "Ham_PlayerSpawn_Post", true)

register_event("HLTV", "Event_HLTV", "a", "1=0", "2=0")

#if defined DEBUG
register_clcmd("assist", "ClCmd_Assist")
#endif
g_iMaxPlayers = get_maxplayers() + 1
}

public Event_HLTV()
{
for(new i = 1; i < g_iMaxPlayers; i++)
{
if(g_ePlayerData[i][CONNECTED])
{
g_ePlayerData[i][ASSISTANT] = 0
arrayset(g_ePlayerData[i][DAMAGE_ON], 0, MAXPLAYERS + 1)
g_ePlayerData[i][ASSISTANT_NAME] = ""
}
}
}

public client_putinserver(id) g_ePlayerData[id][CONNECTED] = true

public client_disconnected(id)
{
g_ePlayerData[id][ASSISTANT] = 0
arrayset(g_ePlayerData[id][DAMAGE_ON], 0, MAXPLAYERS + 1)
g_ePlayerData[id][ASSISTANT_NAME] = ""
g_ePlayerData[id][CONNECTED] = false
}

public Ham_PlayerSpawn_Post(id)
{
#if !defined FFA
g_ePlayerData[id][TEAM] = get_pdata_int(id, m_iTeam, linux_diff_player)
#endif
g_ePlayerData[id][MAXHEALTH] = pev(id, pev_health)
g_ePlayerData[id][ASSISTANT] = 0
g_ePlayerData[id][ASSISTANT_NAME] = ""
}

public Ham_PlayerKilled_Pre(iVictim, iKiller)
{
if(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][CONNECTED]) g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][DAMAGE_ON][iVictim] = 0
if(!is_user_valid(iKiller)) return HAM_IGNORED
g_ePlayerData[iKiller][DAMAGE_ON][iVictim] = 0
if(iKiller == g_ePlayerData[iVictim][ASSISTANT] || iKiller == iVictim || !g_ePlayerData[iVictim][ASSISTANT_NAME][0]) return HAM_IGNORED

static szBuffer[64], szName[32], iLen[2]
get_user_name(iKiller, szName, charsmax(szName))
iLen[0] = strlen(szName)
iLen[1] = strlen(g_ePlayerData[iVictim][ASSISTANT_NAME])
if(iLen[0] > MAXLENGTH / 2)
{
if(iLen[1] > MAXLENGTH / 2)
{
if(iLen[0] - MAXLENGTH / 2 > 1)
{
if(iLen[1] - MAXLENGTH / 2 > 1)
{
strclip(szName, charsmax(szName), MAXLENGTH / 2)
strclip(g_ePlayerData[iVictim][ASSISTANT_NAME], 31, MAXLENGTH / 2)
}
else strclip(szName, charsmax(szName), MAXLENGTH / 2 - (iLen[1] - MAXLENGTH / 2))
}
else strclip(g_ePlayerData[iVictim][ASSISTANT_NAME], 31, MAXLENGTH / 2 - (iLen[0] - MAXLENGTH / 2))
}
else strclip(szName, charsmax(szName), MAXLENGTH - iLen[1])
}
else if(iLen[1] > MAXLENGTH / 2) strclip(g_ePlayerData[iVictim][ASSISTANT_NAME], 31, MAXLENGTH - iLen[0])

formatex(szBuffer, charsmax(szBuffer), "%s + %s", szName, g_ePlayerData[iVictim][ASSISTANT_NAME])

if(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][CONNECTED])
{
#if MONEY_FOR_ASSIST > 0
cs_set_user_money(g_ePlayerData[iVictim][ASSISTANT], min(cs_get_user_money(g_ePlayerData[iVictim][ASSISTANT]) + MONEY_FOR_ASSIST, MAXMONEY))
#endif

#if defined FRAGS_FOR_ASSIST
set_pev(g_ePlayerData[iVictim][ASSISTANT], pev_frags, float(pev(g_ePlayerData[iVictim][ASSISTANT], pev_frags) + 1))
static iMsgScoreInfo
if(!iMsgScoreInfo) iMsgScoreInfo = get_user_msgid("ScoreInfo")
message_begin(MSG_ALL, iMsgScoreInfo)
write_byte(g_ePlayerData[iVictim][ASSISTANT])
write_short(pev(g_ePlayerData[iVictim][ASSISTANT], pev_frags))
write_short(get_pdata_int(g_ePlayerData[iVictim][ASSISTANT], m_iDeaths, linux_diff_player))
write_short(0)
write_short(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][TEAM])
message_end();
#endif
}
g_ePlayerData[iVictim][ASSISTANT] = 0
set_user_fake_name(iKiller, szBuffer)
EnableHamForward(g_pHamSpawnPost)
return HAM_IGNORED
}

public Ham_PlayerKilled_Post(iVictim, iKiller)
{
DisableHamForward(g_pHamSpawnPost)
#if AMXX_VERSION_NUM >= 183 && defined HLTV_FIX
set_task(0.1, "task_resetinfo", iKiller + 64)
#else
reset_user_info(iKiller)
#endif
}

#if AMXX_VERSION_NUM >= 183 && defined HLTV_FIX
public task_resetinfo(id) reset_user_info(id - 64)
#endif

public Ham_PlayerTakeDamage_Pre(iVictim, iWeapon, iAttacker, Float:fDamage)
{
if(!is_user_valid(iAttacker) || iVictim == iAttacker) return HAM_IGNORED
#if !defined FFA
if(g_ePlayerData[iVictim][TEAM] == g_ePlayerData[iAttacker][TEAM]) return HAM_IGNORED
#endif
g_ePlayerData[iAttacker][DAMAGE_ON][iVictim] += floatround(fDamage)
if(g_ePlayerData[iAttacker][DAMAGE_ON][iVictim] >= (float(g_ePlayerData[iVictim][MAXHEALTH]) * (DAMAGE_FOR_ASSIST.0 / 100.0)) && !g_ePlayerData[iVictim][ASSISTANT])
{
get_user_name(iAttacker, g_ePlayerData[iVictim][ASSISTANT_NAME], 31)
g_ePlayerData[iVictim][ASSISTANT] = iAttacker
}
return HAM_IGNORED
}

stock reset_user_info(id)
{
new szUserInfo[256]
copy_infokey_buffer(engfunc(EngFunc_GetInfoKeyBuffer, id), szUserInfo, charsmax(szUserInfo))
#if defined HLTV_FIX
for(new i = 1; i < g_iMaxPlayers; i++)
{
if(!is_user_hltv(i) && g_ePlayerData[i][CONNECTED])
{
message_begin(MSG_ONE, SVC_UPDATEUSERINFO, _, i)
#else
message_begin(MSG_ALL, SVC_UPDATEUSERINFO)
#endif
write_byte(id - 1)
write_long(get_user_userid(id))
write_string(szUserInfo)
write_long(0)
write_long(0)
write_long(0)
write_long(0)
message_end()
#if defined HLTV_FIX
}
}
#endif
}

stock set_user_fake_name(const id, const name[])
{
#if defined HLTV_FIX
for(new i = 1; i < g_iMaxPlayers; i++)
{
if(!is_user_hltv(i) && g_ePlayerData[i][CONNECTED])
{
message_begin(MSG_ONE, SVC_UPDATEUSERINFO, _, i)
#else
message_begin(MSG_ALL, SVC_UPDATEUSERINFO)
#endif
write_byte(id - 1)
write_long(get_user_userid(id))
write_char('\')
write_char('n')
write_char('a')
write_char('m')
write_char('e')
write_char('\')
write_string(name)
for(new i; i < 16; i++) write_byte(0)
message_end()
#if defined HLTV_FIX
}
}
#endif
}

stock strclip(szString[], iSize, iClip)
{
copy(szString, iClip - 2, szString)
add(szString, iSize, "..")
}

#if defined DEBUG
public ClCmd_Assist()
{
new id[3], szArg[64]
for(new i; i < 3; i++)
{
read_argv(i + 1, szArg, charsmax(szArg))
id[i] = str_to_num(szArg)
}
g_ePlayerData[id[2]][ASSISTANT] = id[1]
get_user_name(id[1], g_ePlayerData[id[2]][ASSISTANT_NAME], 31)
ExecuteHamB(Ham_Killed, id[2], id[0], 0)
}
#endif
.
 
В этой теме было размещено решение! Перейти к решению.

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Xelson Автор плагина, приди помоги.
/del
 
Последнее редактирование:

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
sbelov020, А ёпт, не проснулся ещё :D
Но один хрен, плагин у меня на сервере нормально работает xD
 
Сообщения
2,751
Реакции
3,016
Помог
61 раз(а)
Кеширование барина и погубило.

Фикс: 122 строку заменить
Код:
-if(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][CONNECTED])
+if(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][CONNECTED] && is_user_connected(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]))
 
Сообщения
290
Реакции
28
Помог
2 раз(а)
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// next21_kill_assist.sma
//
// D:\downloads\compiler 190 5249\addons\amxmodx\scripting\next21_kill_assist.sma(122) : error 035: argument type mismatch (argument 1)
//
// 1 Error.
// Could not locate output file D:\downloads\compiler 190 5249\addons\amxmodx\scripting\compiled\next21_kill_assist.amx (compile failed).
//
// Compilation Time: 0.3 sec
// ----------------------------------------

Press enter to exit ...
 
Сообщения
212
Реакции
334
Помог
3 раз(а)
wopox1337, тогда уж можно просто is_user_connected оставить. Только интересно, куда игрок пропал, минув client_disconnected...
 
Сообщения
290
Реакции
28
Помог
2 раз(а)
did, same error
 
Последнее редактирование модератором:
Сообщения
64
Реакции
131
Помог
4 раз(а)
Код:
-if(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][CONNECTED] && is_user_connected(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]))
+if(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]][CONNECTED] && is_user_connected(g_ePlayerData[g_ePlayerData[iVictim][ASSISTANT]]))
 
Сообщения
2,751
Реакции
3,016
Помог
61 раз(а)
  • Нравится
Реакции: Ayk
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу