#1

help please!

error:
Код:
[06:56:25] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[06:56:25] [debug]  Stack pointer (STK) is 0xE3DEC, heap pointer (HEA) is 0xE3DB0
[06:56:25] [debug] AMX backtrace:
[06:56:25] [debug] #0 000c38e4 in ?? (0x00000000) from multimode.amx
[06:56:25] [debug] #1 000c3a78 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #2 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #3 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #4 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #5 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #6 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #7 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #8 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #9 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #10 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #11 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #12 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #13 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #14 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #15 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #16 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #17 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #18 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #19 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #20 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #21 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #22 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #23 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #24 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #25 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #26 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #27 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #28 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #29 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #30 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #31 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #32 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #33 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #34 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #35 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #36 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #37 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #38 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #39 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #40 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #41 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #42 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #43 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #44 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #45 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #46 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #47 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #48 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #49 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #50 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #51 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #52 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #53 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #54 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #55 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #56 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #57 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #58 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #59 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #60 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #61 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #62 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #63 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #64 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #65 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #66 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #67 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #68 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #69 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #70 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #71 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #72 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #73 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #74 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #75 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #76 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #77 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #78 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #79 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #80 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #81 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #82 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #83 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #84 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #85 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #86 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #87 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #88 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #89 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #90 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #91 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #92 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #93 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #94 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #95 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #96 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #97 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #98 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #99 000c3a94 in ?? (0x00000000, 0x00000000) from multimode.amx
[06:56:25] [debug] #100 000c3a94 in public OnPlayerEnterRaceCheckpoint (0x00000000, 0x00000000) from multimode.amx
OnPlayerEnterCheckpoint:
Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
	if(CPProgess[playerid] == Race[rTotalCP] -1)
	{
		new TimeStamp,TotalRaceTime,string[256],rTime[3],Prize;
		Race[rPosition]++;
		TimeStamp = GetTickCount();
		TotalRaceTime = TimeStamp - Race[rTick];
		ConvertTime(var, TotalRaceTime, rTime[0], rTime[1], rTime[2]);
		switch(Race[rPosition])
		{
		    case 1: Prize = 1000;
		    case 2: Prize = 500;
		    case 3: Prize = 400;
		    case 4: Prize = 300;
		    case 5: Prize = 200;
		    case 6: Prize = 100;
		    case 7: Prize = 75;
		    case 8: Prize = 40;
		    case 9: Prize = 36;
		    default: Prize = 8;
		}
		format(string, sizeof(string), ">> RACE: %s finished race! (%d - %d:%d.%d)", User[playerid][pNames],Race[rPosition],rTime[0], rTime[1], rTime[2]);
		SendLobbyMessage(0x00FF00FF, string, 2);
		DestroyVehicle(PlayerVehicle[playerid]);
		Race[rFinishCount]++;
		User[playerid][pMoney] += Prize;
		DisablePlayerRaceCheckpoint(playerid);
		StartSpectate(playerid, GetRandomPlayer(playerid));
		CPProgess[playerid]++;
		if(Race[rFinishCount] >= Race[rJoinCount])
		{
			switch(random(2))
			{
			    case 0:
				{
					StopSpectate(playerid);
					SpawnPlayer(playerid);
					PlayerTextDrawSetString(playerid,MapText[playerid],"MAP: ~w~~h~DesertRace");
		            PlayerTextDrawShow(playerid,MapText[playerid]);
					LoadRace("DesertRace");
				}
				case 1:
				{
				    StopSpectate(playerid);
					SpawnPlayer(playerid);
					PlayerTextDrawSetString(playerid,MapText[playerid],"MAP: ~w~~h~CloseRacing");
		            PlayerTextDrawShow(playerid,MapText[playerid]);
					LoadRace("CloseRacing");
				}
			}
		}
		return true;
    }
	else
	{
		if(Race[rStarted] == 0) return SetVehicleVelocity(PlayerVehicle[playerid],0,0,0),GameTextForPlayer(playerid, "~g~STAY IN THE CHECKPOINT", 3000, 3);
		CPProgess[playerid]++;
		CPCoords[CPProgess[playerid]][3]++;
		RacePosition[playerid] = floatround(CPCoords[CPProgess[playerid]][3], floatround_floor);
	    SetCP(playerid, CPProgess[playerid], CPProgess[playerid]+1, Race[rTotalCP]);
	}
	return 1;
}
Reply
#2

The crash information prints the most recent events first. In other words #0 was the last thing that happened, making this information totally useless. Runtime error 3 is often caused by neglecting the "code size" information box when compiling. It is already telling you that you're using too much stack.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)