shape1
shape2
shape3
shape4
shape7
shape8

Ошибка: Run time error 3: Stack/heap collision


Henessy

Новичок
Пользователь
14.03.2018
1
0
0
Ошибка не совсем при компилировании, а когда заходит любой человек, дает эти текста и сервер полностью не функционирует. (Деньги, Уровень и т.д. на нуле)
 

[17:44:47] [join] Nick_Name has joined the server (Тут IP)
[17:45:27] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:45:27] [debug] Stack pointer (STK) is 0x9D89F4, heap pointer (HEA) is 0x9D9160
[17:45:27] [debug] AMX backtrace:
[17:45:27] [debug] #0 004b97b4 in public OnPlayerRegister (0) from pwn.amx
[17:45:27] [debug] #1 005c3644 in public OnPlayerClickTextDraw (0, 130) from pwn.amx
[17:46:12] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:46:12] [debug] Stack pointer (STK) is 0x9D8E64, heap pointer (HEA) is 0x9D9160
[17:46:12] [debug] AMX backtrace:
[17:46:12] [debug] #0 0040dda8 in public Iter_OnPlayerDisconnect (0, 2) from pwn.amx
[17:46:12] [debug] #1 native CallLocalFunction () from samp03svr
[17:46:12] [debug] #2 0040dda8 in public OnPlayerDisconnect (0, 2) from pwn.amx
[17:46:12] [debug] #3 native Kick () from samp03svr
[17:46:12] [debug] #4 0040dda8 in public KickPublic (0, 2) from pwn.amx
[17:46:12] [part] Nick_Name has left the server (0:2)

Паблик "OnPlayerRegister":

 

publics: OnPlayerRegister(playerid)
{
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pAdministration228] = 0;
PlayerInfo[playerid][pSupport] = 0;
PlayerInfo[playerid][pSHealth] = 100.0;
PlayerInfo[playerid][pHealth] = 100.0;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][Promo] = 0;
PlayerInfo[playerid][pLocal] = 255;
new randphone = 100000 + random(899999);
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pCash] = 300;
PlayerInfo[playerid][pBank] = 0;
PlayerInfo[playerid][pMobile] = 10;
PlayerInfo[playerid][pChar][1] = 230;
PlayerInfo[playerid][pChar][2] = 230;
PlayerInfo[playerid][pMarriedTo] = strval("-");
strmid (PlayerInfo[playerid][pMarriedTo], "-", 0, strlen("-"), 255);
PlayerInfo[playerid][pZakonp] = 0;
PlayerInfo[playerid][pHousecash] = 0;
PlayerInfo[playerid][pWantedLevel] = 0;
PlayerInfo[playerid][pMuted] = 0;
PlayerInfo[playerid][pMuteTime] = 0;
PlayerInfo[playerid][pPhousekey] = -1;
PlayerInfo[playerid][pDonatemoney] = 0;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pGolod] = 100;
PlayerInfo[playerid][pMedcard] = 0;
PlayerInfo[playerid][pAutoTime] = 0;
PlayerInfo[playerid][pOtmbI4ka] = 0;
PlayerInfo[playerid][pTimeBP] = 0;
PlayerInfo[playerid][pAutoSkill] = 0;
PlayerInfo[playerid][pTruckSkill] = 0;
PlayerInfo[playerid][pSkillT] = 0;
PlayerInfo[playerid][pSkate] = 0;
PlayerInfo[playerid][pSgf] = 0;
PlayerInfo[playerid][pBalon4ik] = 0;
PlayerInfo[playerid][pBint] = 0;
PlayerInfo[playerid][pCoster] = 0;
PlayerInfo[playerid][Promo] = 0;
PlayerInfo[playerid][pBizpokup] = 0;
PlayerInfo[playerid][pQuest] = 0;
PlayerInfo[playerid][pSiga] = 0;
PlayerInfo[playerid][pNazivka] = 0;
PlayerInfo[playerid][pPhonePlayer] = 0;
PlayerInfo[playerid][pDostup] = 0;
PlayerInfo[playerid][pShtanga] = 0;
PlayerInfo[playerid][pVelo] = 0;
PlayerInfo[playerid][pGiri] = 0;
PlayerInfo[playerid][pSpawnChange] = 1;
PlayerInfo[playerid][pBeg] = 0;
PlayerInfo[playerid][pEmailpod] = 0;
PlayerInfo[playerid][pNumbercar] = 0;
PlayerInfo[playerid][pWheels] = 0;
PlayerInfo[playerid][pSpoilers] = 0;
PlayerInfo[playerid][pHydraulics] = 0;
PlayerInfo[playerid][pHBumper] = 0;
PlayerInfo[playerid][pBBumper] = 0;
PlayerInfo[playerid][pNitro] = 0;
PlayerInfo[playerid][pOtel] = 0;
PlayerInfo[playerid][pQuest_1] = 0;
PlayerInfo[playerid][pQuest_2] = 0;
PlayerInfo[playerid][pQuest_3] = 0;
PlayerInfo[playerid][pQuest_4] = 0;
PlayerInfo[playerid][pQuest_5] = 0;
PlayerInfo[playerid][pLWarns] = 0;
PlayerInfo[playerid][pMWarns] = 0;
PlayerInfo[playerid][pDiplom] = 0;
PlayerInfo[playerid][pMath] = 0;
PlayerInfo[playerid][pHistory] = 0;
PlayerInfo[playerid][pBiology] = 0;
PlayerInfo[playerid][pInform] = 0;
PlayerInfo[playerid][pRussian] = 0;
PlayerInfo[playerid][pKeylog] = 0;
PlayerInfo[playerid][pSuperKey] = 0;
for(new i; i<14;i++) AccInvInfo[playerid] = 0;
PlayerInfo[playerid][pDataLeader] = strval("-");
strmid (PlayerInfo[playerid][pDataLeader], "-", 0, strlen("-"), 32);
PlayerInfo[playerid][pDataInvite] = strval("-");
strmid (PlayerInfo[playerid][pDataInvite], "-", 0, strlen("-"), 32);
SetPlayerColor(playerid, TEAM_HIT_COLOR);
GivePlayerPPCash(playerid, 0);
ClearMarriage(playerid);
new year, month,day;
new query[128];
new string[300];
new playersip[25];
getdate(year, month, day);
GetPlayerIp(playerid,playersip,sizeof(playersip));
new strstre[100];
format(strstre,sizeof(strstre), "%i/%i/%i",day,month,year);
query = "UPDATE `"TABLE_ACCOUNT"` SET ";
acc_str_strcat(query, sizeof(query), "pDataReg", strstre);
acc_str_strcat(query, sizeof(query), "pIpReg", playersip);
strdel(query, strlen(query)-1, strlen(query));
format(string,sizeof(string)," WHERE `Name` = '%s'",Name(playerid));
strcat(query, string);
mysql_query(query);
DollahScoreUpdate(playerid);
OnPlayerUpdateAc(playerid);
SpawnPlayer(playerid);
return 1;
}

Все инклуды которые прописаны в моде:

#include <a_samp>
#include <a_http>
#include <a_mysql>
#include <sscanf2>
#include <jit>
#include <streamer>
#include <foreach>
#include <Pawn.CMD>
#include <erp_map>
#include <crashdetect>

Еще инклуд "jit

// Copyright (C) 2013-2015 Zeex
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

#if defined JIT_INC
#endinput
#endif
#define JIT_INC

forward OnJITCompile();

stock bool:IsJITPresent() {
#emit zero.pri
#emit lctrl 7
#emit retn
return false; // make compiler happy
}

stock bool:IsJITASMJumpCapable() {
#emit lctrl 6
#emit move.alt
#emit lctrl 8
#emit neq
#emit retn
return false; // make compiler happy
}


Я точно не знаю зачем все это, но просили на других форумах.

"