Код HTML:
19:12:56] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[19:12:56] [debug] Stack pointer (STK) is 0x32323C, heap pointer (HEA) is 0x323200
[19:12:56] [debug] AMX backtrace:
[19:12:56] [debug] #0 0002d760 in ?? (-1031798784, 1116864512, 3289700) from plm.amx
[19:12:56] [debug] #1 0002f4bc in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #2 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #3 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #4 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #5 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #6 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #7 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #8 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #9 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #10 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #11 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #12 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #13 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #14 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #15 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #16 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #17 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #18 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #19 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #20 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #21 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #22 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #23 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #24 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #25 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #26 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #27 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #28 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #29 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #30 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #31 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #32 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #33 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #34 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #35 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #36 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #37 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #38 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #39 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #40 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #41 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #42 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #43 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #44 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #45 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #46 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #47 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #48 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #49 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #50 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #51 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #52 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #53 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #54 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #55 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #56 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #57 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #58 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #59 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #60 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #61 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #62 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #63 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #64 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #65 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #66 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #67 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #68 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #69 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #70 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #71 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #72 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #73 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #74 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #75 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #76 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #77 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #78 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #79 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #80 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #81 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #82 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #83 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #84 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #85 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #86 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #87 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #88 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #89 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #90 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #91 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #92 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #93 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #94 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #95 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #96 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #97 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #98 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #99 0002fab8 in public MovingDeer (19) from plm.amx
[19:12:56] [debug] #100 0002fab8 in public MovingDeer (19) from plm.amx
[19:21:54] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[19:21:54] [debug] Stack pointer (STK) is 0x32323C, heap pointer (HEA) is 0x323200
[19:21:54] [debug] AMX backtrace:
[19:21:54] [debug] #0 0002d760 in ?? (-1029439488, -1030094848, 3289700) from plm.amx
[19:21:54] [debug] #1 0002f4bc in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #2 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #3 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #4 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #5 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #6 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #7 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #8 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #9 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #10 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #11 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #12 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #13 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #14 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #15 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #16 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #17 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #18 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #19 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #20 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #21 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #22 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #23 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #24 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #25 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #26 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #27 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #28 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #29 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #30 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #31 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #32 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #33 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #34 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #35 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #36 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #37 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #38 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #39 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #40 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #41 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #42 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #43 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #44 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #45 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #46 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #47 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #48 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #49 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #50 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #51 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #52 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #53 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #54 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #55 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #56 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #57 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #58 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #59 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #60 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #61 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #62 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #63 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #64 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #65 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #66 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #67 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #68 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #69 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #70 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #71 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #72 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #73 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #74 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #75 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #76 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #77 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #78 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #79 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #80 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #81 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #82 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #83 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #84 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #85 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #86 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #87 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #88 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #89 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #90 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #91 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #92 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #93 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #94 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #95 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #96 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #97 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #98 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #99 0002fab8 in public MovingDeer (6) from plm.amx
[19:21:54] [debug] #100 0002fab8 in public MovingDeer (6) from plm.amx
Код HTML:
public MovingDeer(DeerID)
{
if(DeerKO[DeerID]==0&&DeerMove[DeerID]==0)
{
new Float:X,Float:Y,Float:Z,Float:Xrand,Float:Yrand,Float:Zrand,Float:speedRand,Float:Angle;
GetDynamicObjectPos(DeerObject[DeerID],X,Y,Z);
new rand1=random(2),rand2=random(2);
if(rand1==0) Xrand=X+10+float(random(10));
else Xrand=X-10-float(random(10));
if(rand2==0) Yrand=Y+10+float(random(10));
else Yrand=Y-10-float(random(10));
Zrand=GetPointZPos(Xrand,Yrand,Zrand);
speedRand=7+float(random(9));
if((Xrand-X)>0&&(Yrand-Y)>0)Angle=atan((Yrand-Y)/(Xrand-X));
else Angle=atan((Yrand-Y)/(Xrand-X))-180;
if(floatabs(Zrand-Z)<3.0)
{
if(IsPosInDeerZone(Xrand,Yrand))
{
GetPointZPos(Xrand,Yrand,Zrand);
SetDynamicObjectRot(DeerObject[DeerID],0,0,Angle);
MoveDynamicObject(DeerObject[DeerID],Xrand,Yrand,Zrand+0.3,speedRand,0,0,Angle);
DeerMove[DeerID]=1;
SetTimerEx("MovingDeer",10000+random(40000),false,"i",DeerID);//On peut changer la frйquence des mouvements
}
else MovingDeer(DeerID);
}
else MovingDeer(DeerID);
}
return 1;
}