Debug Crashdetect
#1

My server is restarting sometimes with no reason..

I am using crashdetect and i received this :


Code:
[15:20:38] [debug] Run time error 4: "Array index out of bounds"
[15:20:38] [debug]  Accessing element at index 65535 past array upper bound 999
[15:20:38] [debug] AMX backtrace:
[15:20:38] [debug] #0 0007f1f8 in public OnPlayerTakeDamage (0, 65535, 1099352299, 54, 3) from gmv.amx
[15:20:38] [debug] Run time error 4: "Array index out of bounds"
[15:20:38] [debug]  Accessing element at index 65535 past array upper bound 999
[15:20:38] [debug] AMX backtrace:
[15:20:38] [debug] #0 0009b4bc in public AB_OnPlayerDeath (0, 65535, 54) from gmv.amx
[15:20:38] [debug] #1 00019fd8 in public fk_OnPlayerDeath (0, 65535, 54) from gmv.amx
[15:20:38] [debug] #2 00014114 in public OnPlayerDeath (0, 65535, 54) from gmv.amx
[15:20:43] [debug] #0 000b25fc in public cmd_stopalarm (11, 13099336) from gmv.amx

[15:20:43] [debug] Run time error 4: "Array index out of bounds"
[15:20:43] [debug]  Accessing element at negative index -1
[15:20:43] [debug] AMX backtrace:
[15:20:43] [debug] #1 native CallLocalFunction () from samp03svr
[15:20:43] [debug] #2 000008a4 in public OnPlayerCommandText (11, 13099284) from gmv.amx

[15:20:41] [debug] Run time error 4: "Array index out of bounds"
[15:20:41] [debug]  Accessing element at index 49 past array upper bound 48
[15:20:41] [debug] AMX backtrace:
[15:20:41] [debug] #0 00071014 in public SetPlayerUnjail () from gmv.amx

[15:20:55] [debug] Run time error 4: "Array index out of bounds"
[15:20:55] [debug]  Accessing element at index 612 past array upper bound 611
[15:20:55] [debug] AMX backtrace:
[15:20:55] [debug] #0 000970c4 in ?? (612) from gmv.amx
[15:20:55] [debug] #1 001ade58 in public SaveData () from gmv.amx


[15:20:41] [query:p] from 176.212.87.105
[15:20:41] [query:i] from 77.65.34.241
[15:20:42] [query:p] from 77.65.34.241
[15:20:42] [query:p] from 79.118.58.36
[15:20:42] [query:p] from 109.97.90.157

[15:23:12] [debug] #0 0007f1f8 in public OnPlayerTakeDamage (32, 65535, 1042318099, 37, 3) from gmv.amx
[15:23:12] [debug] Run time error 4: "Array index out of bounds"
[15:23:12] [debug]  Accessing element at index 65535 past array upper bound 999
Please, help me ! I am disperate...



When the server is crashed i receive this:

Code:
[15:55:10] [debug] Server crashed while executing gmi.amx
[15:55:10] [debug] AMX backtrace:
[15:55:10] [debug] #0 native mysql_query () from mysql_static.so
[15:55:10] [debug] #1 0013c7e8 in public globalPlayerLoop2 () from gmi.amx
[15:55:10] [debug] Native backtrace:
[15:55:10] [debug] #0 f742ce8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[15:55:10] [debug] #1 f7425bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[15:55:10] [debug] #2 f7426dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[15:55:10] [debug] #3 f7427226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[15:55:10] [debug] #4 f742cadc in ?? () from plugins/crashdetect.so
[15:55:10] [debug] #5 f771a410 in ?? ()
[15:55:10] [debug] #6 f7568856 in ?? () from /lib32/libc.so.6
[15:55:10] [debug] #7 f6e73254 in _ZN11CMySQLQuery11StoreResultEP8st_mysqlP12st_mysql_res () from plugins/mysql_static.so
[15:55:10] [debug] #8 f6e73657 in _ZN11CMySQLQuery7ExecuteEP8st_mysql () from plugins/mysql_static.so
[15:55:10] [debug] #9 f6e83693 in _ZN6Native11mysql_queryEP6tagAMXPi () from plugins/mysql_static.so
[15:55:10] [debug] #10 080950e4 in ?? () from samp03svr
[15:55:10] [debug] #11 f73880b5 in ?? () from plugins/streamer.so
[15:55:10] [debug] #12 f742894b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[15:55:10] [debug] #13 f742b8f8 in ?? () from plugins/crashdetect.so
[15:55:10] [debug] #14 f742f916 in amx_Exec () from plugins/crashdetect.so
[15:55:10] [debug] #15 f7427be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[15:55:10] [debug] #16 f742b659 in ?? () from plugins/crashdetect.so
[15:55:10] [debug] #17 f7388173 in ?? () from plugins/streamer.so
[15:55:10] [debug] #18 080ebc05 in ?? () from samp03svr
[15:55:10] [debug] #19 080af03c in ?? () from samp03svr
[15:55:10] [debug] #20 080aa13a in ?? () from samp03svr
[15:55:10] [debug] #21 f7466bd6 in __libc_start_main () from /lib32/libc.so.6
[15:55:10] [debug] #22 0804b4e1 in ?? () from samp03svr
Reply
#2

Hi,

Great! Now you should compile your GameMode in debug mode so CrashDetect can output more useful information (like the exact line on which the error occurs). To do so you need to pass the flag "-d3" to the Pawn compiler, you can easily do this by creating a "pawn.cfg" file inside the Pawno folder with the following contents:
Code:
-r -O0 -d3
After doing that, compile the GameMode, run the server and post the server log here again

Also, put here your OnPlayerTakeDamage, globalPlayerLoop2, SetPlayerUnjail and SaveData.
Reply
#3

Quote:
Originally Posted by Nixtren
View Post
Hi,

Great! Now you should compile your GameMode in debug mode so CrashDetect can output more useful information (like the exact line on which the error occurs). To do so you need to pass the flag "-d3" to the Pawn compiler, you can easily do this by creating a "pawn.cfg" file inside the Pawno folder with the following contents:
Code:
-r -O0 -d3
After doing that, compile the GameMode, run the server and post the server log here again

Also, put here your OnPlayerTakeDamage, globalPlayerLoop2, SetPlayerUnjail and SaveData.
Code:
public SaveData()
{
        foreach(Player, x)
		{
			savePlayerData(x);
		}
		for(new xh = 0; xh < MAX_HOUSES; xh++)
		{
            saveHouse(xh);
		}
		for(new xf = 0; xf < MAX_GROUPS; xf++)
		{
            saveGroup(xf);
		}
		for(new xc = 0; xc < MAX_CLANS; xc++)
		{
            saveClan(xc);
		}
		for(new xf = 0; xf < MAX_BUSINESSES; xf++)
		{
            saveBusiness(xf);
		}
		for(new xf = 0; xf < MAX_ASSETS; xf++)
		{
            saveAsset(xf);
		}
		for(new ff = 0; ff < 613; ff++)
		{
            saveDealer(ff);
		}
}
Reply
#4

You should compile your GameMode in debug mode so CrashDetect can output more useful information (like the exact line on which the error occurs). To do so you need to pass the flag "-d3" to the Pawn compiler, you can easily do this by creating a "pawn.cfg" file inside the Pawno folder with the following contents:
Code:
-r -O0 -d3
After doing that, compile the GameMode, run the server and post the server log here again.

Do that! It will really help to solve this and any future problems you might come across!
Reply
#5

I did it. This is my server_log.txt:

Code:
[16:43:55] [debug] Run time error 4: "Array index out of bounds"
[16:43:55] [debug]  Accessing element at index 49 past array upper bound 48
[16:43:55] [debug] AMX backtrace:
[16:43:55] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:43:55] [query:p] from 87.88.213.33
[16:43:56] [debug] Run time error 4: "Array index out of bounds"
[16:43:56] [debug]  Accessing element at index 49 past array upper bound 48
[16:43:56] [debug] AMX backtrace:
[16:43:56] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:43:57] [debug] Run time error 4: "Array index out of bounds"
[16:43:57] [debug]  Accessing element at index 49 past array upper bound 48
[16:43:57] [debug] AMX backtrace:
[16:43:57] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:43:58] [debug] Run time error 4: "Array index out of bounds"
[16:43:58] [debug]  Accessing element at index 49 past array upper bound 48
[16:43:58] [debug] AMX backtrace:
[16:43:58] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:43:59] [debug] Run time error 4: "Array index out of bounds"
[16:43:59] [debug]  Accessing element at index 49 past array upper bound 48
[16:43:59] [debug] AMX backtrace:
[16:43:59] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:00] [debug] Run time error 4: "Array index out of bounds"
[16:44:00] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:00] [debug] AMX backtrace:
[16:44:00] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:01] [debug] Run time error 4: "Array index out of bounds"
[16:44:01] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:01] [debug] AMX backtrace:
[16:44:01] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:02] [debug] Run time error 4: "Array index out of bounds"
[16:44:02] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:02] [debug] AMX backtrace:
[16:44:02] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:03] [debug] Run time error 4: "Array index out of bounds"
[16:44:03] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:03] [debug] AMX backtrace:
[16:44:03] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:04] [query:r] from 93.119.26.254
[16:44:04] [query:d] from 93.119.26.254
[16:44:04] [query:i] from 93.119.26.254
[16:44:04] [debug] Run time error 4: "Array index out of bounds"
[16:44:04] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:04] [debug] AMX backtrace:
[16:44:04] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:05] [debug] Run time error 4: "Array index out of bounds"
[16:44:05] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:05] [debug] AMX backtrace:
[16:44:05] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:06] [debug] Run time error 4: "Array index out of bounds"
[16:44:06] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:06] [debug] AMX backtrace:
[16:44:06] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:07] [debug] Run time error 4: "Array index out of bounds"
[16:44:07] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:07] [debug] AMX backtrace:
[16:44:07] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:08] [debug] Run time error 4: "Array index out of bounds"
[16:44:08] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:08] [debug] AMX backtrace:
[16:44:08] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:08] [query:i] from 94.14.115.22
[16:44:08] [query:p] from 94.14.115.22
[16:44:09] [debug] Run time error 4: "Array index out of bounds"
[16:44:09] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:09] [debug] AMX backtrace:
[16:44:09] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:09] [query:i] from 94.14.115.22
[16:44:09] [query:p] from 94.14.115.22
[16:44:09] [query:c] from 94.14.115.22
[16:44:09] [query:r] from 94.14.115.22
[16:44:09] [query:p] from 94.14.115.22
[16:44:10] [connection] 87.88.213.33:27195 requests connection cookie.
[16:44:10] [debug] Run time error 4: "Array index out of bounds"
[16:44:10] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:10] [debug] AMX backtrace:
[16:44:10] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:10] [query:p] from 94.14.115.22
[16:44:10] [query:i] from 94.14.115.22
[16:44:10] [query:p] from 94.14.115.22
[16:44:10] [query:c] from 94.14.115.22
[16:44:10] [query:r] from 94.14.115.22
[16:44:10] [query:p] from 94.14.115.22
[16:44:11] [connection] incoming connection: 87.88.213.33:27195 id: 2
[16:44:11] [query:i] from 94.14.115.22
[16:44:11] [query:p] from 94.14.115.22
[16:44:11] [query:c] from 94.14.115.22
[16:44:11] [query:r] from 94.14.115.22
[16:44:11] [debug] Run time error 4: "Array index out of bounds"
[16:44:11] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:11] [debug] AMX backtrace:
[16:44:11] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
[16:44:11] [query:p] from 94.14.115.22
[16:44:11] [join] lucher has joined the server (2:87.88.213.33)
[16:44:11] Player lucher (2) reports client version: 0.3.7
[16:44:12] [query:p] from 94.14.115.22
[16:44:12] [debug] Run time error 4: "Array index out of bounds"
[16:44:12] [debug]  Accessing element at index 49 past array upper bound 48
[16:44:12] [debug] AMX backtrace:
[16:44:12] [debug] #0 00070170 in public SetPlayerUnjail () from gmvot.amx
BTW, i started the server and after 10 seconds I stoped it. Is it enough?
Reply
#6

Quote:
Originally Posted by Nin9r
View Post
I did it. This is my server_log.txt:
BTW, i started the server and after 10 seconds I stoped it. Is it enough?
Yes, it's enough, thanks. Unfortunately, it looks like something is wrong. CrashDetect still isn't outputting the exact line of the errors. Can you confirm there's a .xml file in your GameModes folder?

Code:
gamemode.pwn
gamemode.amx
gamemode.xml
Reply
#7

Quote:
Originally Posted by Nixtren
View Post
Yes, it's enough, thanks. Unfortunately, it looks like something is wrong. CrashDetect still isn't outputting the exact line of the errors. Can you confirm there's a .xml file in your GameModes folder?

Code:
gamemode.pwn
gamemode.amx
gamemode.xml
I don't have any .XML file...


I removed this from SetPlayerUnjail and i don't receive that error...

Which is the problem here ?


Code:
for(new i = 0; i <= sizeof(TurfInfo); i++)
	{
	    new string[256];
	    new count = 0;
	    new att = WarInfo[i][wAttacker];
		new deff = WarInfo[i][wFaction];
	    if(WarInfo[i][wTime] > 0)
	    {
	        WarInfo[i][wTime] -= 1;
            foreach(Player, x)
			{
			    if(PlayerData[x][pGroup] == WarInfo[i][wAttacker])
			    {
	 				if(IsPlayerInTurf(x , i))
					{
					    count++;
					}
				}
				if(groupVariables[PlayerData[x][pGroup]][gInWar] == 0)
				{
					foreach(Player, a)
					{
					//	SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
					}
				}
		 		if(PlayerData[x][pGroup] == WarInfo[i][wAttacker] || PlayerData[x][pGroup] == WarInfo[i][wFaction])
			    {
					new time = WarInfo[i][wTime];
					TextDrawShowForPlayer(x, tTimer[x]);
					format(string, sizeof(string), "Time: ~g~%s", CalculeazaTimp(time));
					TextDrawSetString(tTimer[x], string);

					TextDrawShowForPlayer(x, War0[x]);
					//TextDrawShowForPlayer(x, War1[x]);
				//	TextDrawShowForPlayer(x, War2[x]);
					format(string, sizeof(string), "Kills: %d | Deaths: %d | Score: %d", PlayerData[x][pWarScore], PlayerData[x][pWarDeaths], PlayerData[x][pWarScore] - PlayerData[x][pWarDeaths]);
					TextDrawSetString(War0[x], string);
					new id;
					id = CalculateBestScore(x);
					format(string, sizeof(string), "Best: %s | Score %d", PlayerData[id][pNormalName],PlayerData[id][pWarScore]-PlayerData[id][pWarDeaths]);
					TextDrawSetString(War4[x], string);
					GangZoneFlashForPlayer(x, Turfs[i], COLOR_RED);
					if(IsPlayerInTurf(x, i))
					{
					    if(IsPlayerInAnyVehicle(x))
					    {
					        if(JustRemoved[x] == 0)
					        {
						        RemovePlayerFromVehicle(x);
						        SendClientMessage(x, COLOR_RED, "Not allowed!");
						        JustRemoved[x] = 1;
							}
					    }
					}
			/*		for(new we = 0; we <= sizeof(TurfInfo); we++)
					{
					    new deffz = WarInfo[we][wFaction];
					    format(string, sizeof(string), "Score: ~r~1 %d ~g~- ~y~%d 2", groupVariables[WarInfo[we][wAttacker]][gScore],groupVariables[deffz][gScore]);
						TextDrawSetString(War3[i], string);
					}

*/
					foreach(Player, a)
					{
						if((PlayerData[x][pGroup] == WarInfo[i][wAttacker] || PlayerData[x][pGroup] == WarInfo[i][wFaction]) && groupVariables[PlayerData[x][pGroup]][gInWar] == 1 && (PlayerData[a][pGroup] == WarInfo[i][wAttacker] || PlayerData[a][pGroup] == WarInfo[i][wFaction]))
						{
							//SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
						}
					}

					if(GetPlayerState(x) == PLAYER_STATE_ONFOOT)
					{
						JustRemoved[x] = 0;
					}

			    }
				else if(PlayerData[x][pGroup] == 0)
				{
					TextDrawHideForPlayer(x, tTimer[x]);
					GangZoneStopFlashForPlayer(x, Turfs[i]);
				}
			}
			if(count == -1)
			{

			    	groupVariables[WarInfo[i][wFaction]][gInWar] = 0;
					groupVariables[WarInfo[i][wAttacker]][gInWar] = 0;
			        groupVariables[att][gDeelay] = 1200;
					new id;
					id = CalculateBestScore(i);
					new id2 = CalculateWorstScore(i);
					format(szMessage, sizeof(szMessage), "Final Score: %s [%d] - [%d] %s",groupVariables[WarInfo[i][wAttacker]][gGroupName] , groupVariables[WarInfo[i][wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
     				SendClientMessageToAll(RED, szMessage);
					format(szMessage, sizeof(szMessage), "Best: %s (%i) [%d %d].  member: %s (%i) [%d / %d ].", PlayerData[id][pNormalName], PlayerData[id][pWarScore] - PlayerData[id][pWarDeaths],PlayerData[id][pWarScore],PlayerData[id][pWarDeaths], PlayerData[id2][pNormalName], PlayerData[id2][pWarScore] - PlayerData[id2][pWarDeaths],PlayerData[id2][pWarScore],PlayerData[id2][pWarDeaths]);
					SendClientMessageToAll(COLOR_GRAD1, szMessage);
					foreach(Player, z)
					{
						TextDrawHideForPlayer(z, tTimer[z]);
						if(PlayerData[z][pGroup] == att || PlayerData[z][pGroup] == deff)
						{
							foreach(Player, a)
							{
							//	SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
							}
						    TextDrawHideForPlayer(z, tTimer[z]);
						    format(szMessage, sizeof(szMessage), "Kills: %d Deaths: %d  Score: %i points", PlayerData[z][pWarScore],PlayerData[z][pWarDeaths],PlayerData[z][pWarScore] - PlayerData[z][pWarDeaths]);
						    SendClientMessage(z, COLOR_LIGHTGREEN, szMessage);
						    PlayerData[z][pWarScore] = 0;
							PlayerData[z][pWarDeaths] = 0;
							GangZoneShowForPlayerEx(z, Turfs[i], GetTeamZoneColor(TurfInfo[i][zOwned]));
							TextDrawHideForPlayer(z, War0[z]);
							TextDrawHideForPlayer(z, War1[z]);
							TextDrawHideForPlayer(z, War2[z]);
	                   
							JustRemoved[z] = 0;
						}
					}
					format(szMessage, sizeof(szMessage), " %s doesn't win %i owned by %s because they left the turf.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendToGroup(att, RED, szMessage);
					SendToGroup(deff, RED, szMessage);
					GangZoneStopFlashForAll(Turfs[i]);
					WarInfo[i][wTime] = 0;
					WarInfo[i][wAttacker] = 0;
					WarInfo[i][wFaction] = 0;
			}
            if(WarInfo[i][wTime] == 2)
            {
                if(groupVariables[WarInfo[i][wAttacker]][gScore] > groupVariables[WarInfo[i][wFaction]][gScore])
                {
	                TurfInfo[i][zOwned] = WarInfo[i][wAttacker];
		            format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[i][zOwned], i);
					mysql_tquery(handle, result);
					format(szMessage, sizeof(szMessage), "%s won %i by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendClientMessageToAll(RED, szMessage);
     				groupVariables[att][gDeelay] = 1200;
				}
	           	else if(groupVariables[WarInfo[i][wAttacker]][gScore] < groupVariables[WarInfo[i][wFaction]][gScore])
	            {
	                TurfInfo[i][zOwned] = WarInfo[i][wFaction];
		            format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[i][zOwned], i);
					mysql_tquery(handle, result);
					groupVariables[att][gDeelay] = 1200;
					format(szMessage, sizeof(szMessage), "{669999}(WarStats){FFFFFF}%s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendToGroup(att, COLOR_LIGHTGREEN, szMessage);
					SendToGroup(deff, COLOR_LIGHTGREEN, szMessage);
				}
				else if(groupVariables[WarInfo[i][wAttacker]][gScore] == groupVariables[WarInfo[i][wFaction]][gScore])
	            {
	                TurfInfo[i][zOwned] = WarInfo[i][wFaction];
		            format(result, sizeof(result), "UPDATE turfs SET tOwned = '%d' WHERE tID = %d", TurfInfo[i][zOwned], i);
					mysql_tquery(handle, result);
					groupVariables[att][gDeelay] = 1200;
					format(szMessage, sizeof(szMessage), "{669999}(WarStats){FFFFFF}%s doesn't win %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendToGroup(att, RED, szMessage);
					SendToGroup(deff, RED, szMessage);
				}
				new id;
				id = CalculateBestScore(i);
				new id2 = CalculateWorstScore(i);
				groupVariables[WarInfo[i][wFaction]][gInWar] = 0;
				groupVariables[WarInfo[i][wAttacker]][gInWar] = 0;

				format(szMessage, sizeof(szMessage), "Final: %s [%d] - [%d] %s",groupVariables[WarInfo[i][wAttacker]][gGroupName] , groupVariables[WarInfo[i][wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
				SendClientMessageToAll(RED, szMessage);
				format(szMessage, sizeof(szMessage), "Best: %s (%i points [%d %d). {669999}Worst member: {B4B5B7}%s (%i) [%d kills / %d deaths].", PlayerData[id][pNormalName], PlayerData[id][pWarScore] - PlayerData[id][pWarDeaths],PlayerData[id][pWarScore],PlayerData[id][pWarDeaths], PlayerData[id2][pNormalName], PlayerData[id2][pWarScore] - PlayerData[id2][pWarDeaths],PlayerData[id2][pWarScore],PlayerData[id2][pWarDeaths]);
				SendClientMessageToAll(COLOR_LIGHTGREEN, szMessage);
				foreach(Player, z)
				{
					TextDrawHideForPlayer(z, tTimer[z]);
					if(PlayerData[z][pGroup] == att || PlayerData[z][pGroup] == deff)
					{
						foreach(Player, a)
						{
					//		SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
						}
					    TextDrawHideForPlayer(z, tTimer[z]);
					    format(szMessage, sizeof(szMessage), "Kills: %d | Deaths: %d | Score: %i", PlayerData[z][pWarScore],PlayerData[z][pWarDeaths],PlayerData[z][pWarScore] - PlayerData[z][pWarDeaths]);
					    SendClientMessage(z, RED, szMessage);
					    PlayerData[z][pWarScore] = 0;
						PlayerData[z][pWarDeaths] = 0;
						GangZoneShowForPlayerEx(z, Turfs[i], GetTeamZoneColor(TurfInfo[i][zOwned]));
						JustRemoved[z] = 0;
						TextDrawHideForPlayer(z, War0[z]);
							TextDrawHideForPlayer(z, War1[z]);
							TextDrawHideForPlayer(z, War2[z]);
					}
				}
				GangZoneStopFlashForAll(Turfs[i]);
				WarInfo[i][wTime] = 0;
				WarInfo[i][wAttacker] = 0;
				WarInfo[i][wFaction] = 0;
			}
		}
	}
Reply
#8

Have you created the file "pawn.cfg" in your pawno folder? Also, what Pawn editor do you use? Pawno?

CrashDetect is a very useful plugin when used correctly. I will focus on solving the CrashDetect problem first, as it may help you in the future, and even at the present with the problem you're having right now.
Reply
#9

I am using PAWNO and I made it. In pawno folder i copy/paste the settings.cfg file and renamed it to pawn.cfg. Into the pawn.cfg i wrote what did you say...
Reply
#10

Quote:
Originally Posted by Nin9r
View Post
I am using PAWNO and I made it. In pawno folder i copy/paste the settings.cfg file and renamed it to pawn.cfg. Into the pawn.cfg i wrote what did you say...
Problem catched. The file "settings.cfg" is in reality "settings.ini"

If you prefer, you can download the file "pawn.cfg":
http://uppit.com/18kk99lyazym/pawn.cfg
Reply
#11

This link doesn't work properly... If I will take the server.cfg from ftp and rename it, it works?
Reply
#12

Quote:
Originally Posted by Nin9r
View Post
This link doesn't work properly... If I will take the server.cfg from ftp and rename it, it works?
Yes, do that
Reply
#13

Quote:
Originally Posted by Nixtren
View Post
Yes, do that
Ok bro, I did it.
My server has been crashed again on 57 players online. (huge ping, i don't know why)
I received some errors

Code:
[debug] Run time error 4: "Array index out of bounds"
[15:01:40] [debug]  Accessing element at index 49 past array upper bound 48
[15:01:40] [debug] AMX backtrace:
[15:01:40] [debug] #0 0008dfd0 in public SetPlayerUnjail () at D:\proiecte\server\gamemodes\gmvote.pwn:9579
Error line: if(WarInfo[i][wTime] > 0)

The same error on ; new att = WarInfo[i][wAttacker];
and
new deff = WarInfo[i][wFaction];

BTW. I removed the entire system with that lines and i am still receiving the error on line 9579...
There is a command with /* */ anyway...

2. In mysql_logs i saw these errors :
Code:
[17:10:27] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
and
Code:
[ERROR] CMySQLQuery::Execute[] - (error #1054) Unknown column '0', name = 'NRG-500' WHERE carID = '522'' in 'field list'
How can I fix them?
[/QUOTE]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)