Run time error 10: native error (native "set_user_maxspeed")

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
270
Реакции
43
Помог
5 раз(а)
Ошибка
L 11/20/2018 - 19:33:45: Info (map "de_dust2x2") (file "addons/amxmodx/logs/error_20181120.log")
L 11/20/2018 - 19:33:45: [FUN] Invalid player 22
L 11/20/2018 - 19:33:45: [AMXX] Displaying debug trace (plugin "csg.amxx", version "4.62")
L 11/20/2018 - 19:33:45: [AMXX] Run time error 10: native error (native "set_user_maxspeed")
L 11/20/2018 - 19:33:45: [AMXX] [0] csg.sma::UnsetBlack (line 2846)
L 11/20/2018 - 19:33:45: [AMXX] [1] csg.sma::QuerySelect (line 2794)
ОС
Linux
Amx Mod X
AMX Mod X 1.10.0.5241
Билд
ReHLDS version: 3.4.0.668-dev
ReGamedll
ReGameDLL version: 5.7.0.312-dev
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Список метамодулей
[ 1] Reunion               RUN   -    reunion_mm_i386.so          v0.1.0.133      ini  Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5241 ini Start ANY
[ 3] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 9] SoftBlocker RUN - softblocker_mm_i386.so v1.1g ini ANY Never
[10] Ultimate Unprecacher RUN - unprecacher_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[11] ReAPI RUN - reapi_amxx_i386.so v5.6.0.160-dev pl2 ANY Never
[12] MySQL RUN - mysql_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
[14] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[15] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
[17] CSX RUN - csx_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
[18] Engine RUN - engine_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
[19] Fun RUN - fun_amxx_i386.so v1.10.0.5241 pl2 ANY ANY
Список плагинов
[  1] Admin Loader            3.5         neygomon          admin_loader_3_  running
[ 2] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 3] Ban Sound: Fresh Bans 1.1 Leo_[BH] fb_ban_sound_fi running
[ 4] Fake Ping 1.1 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 5] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 6] Advanced Client Checke 0.3.5 Mistrick cmdchecker.amxx running
[ 7] Ultimate Chats Control 4.5 neygomon ucc.amxx running
[ 8] Advert Messages 1.22 neygomon adverts.amxx running
[ 9] Admin Commands 1.10.0.524 AMXX Dev Team admincmd.amxx running
[ 10] Multi-Lingual System 1.10.0.524 AMXX Dev Team multilingual.am running
[ 11] Menus Front-End 1.9.0.5232 AMXX Dev Team menufrontv2_cli running
[ 12] Commands Menu 1.10.0.524 AMXX Dev Team cmdmenu.amxx running
[ 13] Players Menu 1.10.0.524 AMXX Dev Team plmenu.amxx running
[ 14] Maps Menu 1.10.0.524 AMXX Dev Team mapsmenu.amxx running
[ 15] Admin Chat 1.10.0.524 AMXX Dev Team adminchat.amxx running
[ 16] Anti Flood 1.10.0.524 AMXX Dev Team antiflood.amxx running
[ 17] Admin Votes 1.10.0.524 AMXX Dev Team adminvote.amxx running
[ 18] Stats Configuration 1.10.0.524 AMXX Dev Team statscfg.amxx running
[ 19] HLstatsX CE Ingame Plu 1.6.19 (HL psychonic hlstatsx_comman running
[ 20] unknown unknown unknown csg.amxx running
Автор плагина
unknown
Версия плагина
unknown
Исходный код
public UnsetBlack(id)
{
set_user_maxspeed(id, 250.0); // << (line 2846)

message_begin(MSG_ONE, g_msgid_ScreenFade, {0,0,0}, id);
write_short(1<<10);
write_short(1<<10);
write_short(0x0000);
write_byte(255);
write_byte(255);
write_byte(255);
write_byte(50);
message_end();
}

public QuerySelect(iFailState, Handle:hQuery, szError[ ], iError, iData[ ], iDataSize, Float:fQueueTime)
{
if(iFailState == TQUERY_CONNECT_FAILED || iFailState == TQUERY_QUERY_FAILED) { log_errors("%s", szError); return; }
else
{
new id = iData[0];

if(1 <= id <= 32)
{
static szSkins[512+MAX], szKSkins[512+MAX], szUGuns[256], szChests[128];
static szCoverts[512+MAX], szContract[512+MAX], szContracts[512+MAX];
if(SQL_NumResults(hQuery))
{

SQL_ReadResult(hQuery, 1, SavedPassword[id], 32);
Patirtis[id] = SQL_ReadResult(hQuery, 2);
Killers[id] = SQL_ReadResult(hQuery, 3);
Kills[id] = SQL_ReadResult(hQuery, 4);
Points[id] = SQL_ReadResult(hQuery, 5);
pKey[id] = SQL_ReadResult(hQuery, 6);
Rang[id] = SQL_ReadResult(hQuery, 8);
Rounds[id] = SQL_ReadResult(hQuery, 9);
Kontraktas[id] = SQL_ReadResult(hQuery, 13);
PartySlots[id] = SQL_ReadResult(hQuery, 17);

SQL_ReadResult(hQuery, 10, szSkins, sizeof(szSkins));
SQL_ReadResult(hQuery, 11, szUGuns, sizeof(szUGuns));
SQL_ReadResult(hQuery, 12, szKSkins, sizeof(szKSkins));
SQL_ReadResult(hQuery, 7, szChests, sizeof(szChests));

SQL_ReadResult(hQuery, 14, szContract, sizeof(szContract));
SQL_ReadResult(hQuery, 15, szContracts, sizeof(szContracts));
SQL_ReadResult(hQuery, 16, szCoverts, sizeof(szCoverts));

SQL_NextRow(hQuery);

new myNumbers[512+MAX];

new count = ExplodeString(szContract, myNumbers);

if(count) { for(new i = 1; i < MAX; i++) { Contract[i][id] = myNumbers[i]; } }
count = ExplodeString(szContracts, myNumbers);

if(count) { for(new i = 1; i < MAX; i++) { Contracts[i][id] = myNumbers[i]; } }
count = ExplodeString(szCoverts, myNumbers);

if(count) { for(new i = 1; i < MAX; i++) { Covert[i][id] = myNumbers[i]; } }
count = ExplodeString(szSkins, myNumbers);

if(count) { for(new i = 1; i < MAX; i++) { uWeapon[i][id] = myNumbers[i]; } }
count = ExplodeString(szKSkins, myNumbers);

if(count) { for(new i = 1; i < MAX; i++) { uWeaponKills[i][id] = myNumbers[i]; } }
count = ExplodeString(szUGuns, myNumbers);

if(count)
{
for(new i = 1; i < CSW_VESTHELM; i++)
{
if(myNumbers[i] <= MAX)
{
if(uWeapon[myNumbers[i]][id] && i == Weapons[myNumbers[i]])
{
bUsingGuns[id][i] = myNumbers[i];
}
}
}
}

count = ExplodeString(szChests, myNumbers);

if(count) { for(new i = 1; i <= CHEST_COUNT; i++) { Chest[id][i] = myNumbers[i]; } }

if(!equal(Password[id], SavedPassword[id]))
{
client_print_color(id, print_team_default, "%L", LANG_PLAYER, "SAVE_PASS_ANNOUNCE", Prefix);
}
}
Loged[id] = true;
UnsetBlack(id); // << (line 2794)
}
}
}
L 11/20/2018 - 19:33:45: [AMXX] Displaying debug trace (plugin "cag.amxx", version "4.62")
L 11/20/2018 - 19:33:45: [AMXX] Run time error 10: native error (native "set_user_maxspeed")
L 11/20/2018 - 19:33:45: [AMXX] [0] cag.sma::UnsetBlack (line 2846)
L 11/20/2018 - 19:33:45: [AMXX] [1] cag.sma::QuerySelect (line 2794)
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
270
Реакции
43
Помог
5 раз(а)
hmm maybe add 'is_user_alive( id )' (or connected) in unsetBlakc( id ) ?
ye thans im already found sonfing https://dev-cs.ru/threads/377/ at this time error logs clean.
at morning i will check with more players and write or this if(!is_user_alive(id))return; help.

Код:
public UnsetBlack(id)
{
    if(!is_user_alive(id))return;
    set_user_maxspeed(id, 250.0);
    
    message_begin(MSG_ONE, g_msgid_ScreenFade, {0,0,0}, id);
    write_short(1<<10);
    write_short(1<<10);
    write_short(0x0000);
    write_byte(255);
    write_byte(255);
    write_byte(255);
    write_byte(50);
    message_end();
}
 
Статус
В этой теме нельзя размещать новые ответы.

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

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