09.09.2012, 22:08
[10/09/2012 01:09:38] [debug] Run time error 4: "Array index out of bounds"
[10/09/2012 01:09:38] [debug] Accessing element at index 306 past array upper bound 301
[10/09/2012 01:09:38] [debug] AMX backtrace:
[10/09/2012 01:09:38] [debug] #0 00045880 in public OnPlayerStateChange (playerid=16, newstate=2, oldstate=1) at C:\Documents and Settings\cvl\Desktop\sv 0.3e\gamemodes\Gf.pwn:7836
Line:
line 7835:else
line 7836:{
2.
[10/09/2012 01:10:55] [debug] Run time error 4: "Array index out of bounds"
[10/09/2012 01:10:55] [debug] Accessing element at index 65535 past array upper bound 499
[10/09/2012 01:10:55] [debug] AMX backtrace:
[10/09/2012 01:10:55] [debug] #0 0001b86c in public OnPlayerDeath (playerid=0, killerid=65535, reason=255) at C:\Documents and Settings\cvl\Desktop\sv 0.3e\gamemodes\Gm.pwn:4257
line 4257: killerteam = gTeam[killerid];
rest...
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
SetPlayerFree(playerid,killerid, "Got Killed");
}
(+rep for solution) (+rep for solution) (+rep for solution)
[10/09/2012 01:09:38] [debug] Accessing element at index 306 past array upper bound 301
[10/09/2012 01:09:38] [debug] AMX backtrace:
[10/09/2012 01:09:38] [debug] #0 00045880 in public OnPlayerStateChange (playerid=16, newstate=2, oldstate=1) at C:\Documents and Settings\cvl\Desktop\sv 0.3e\gamemodes\Gf.pwn:7836
Line:
Код:
if(newcar == sds1 || newcar == sds2 || newcar == sds3 || newcar == sds4 || newcar == sds5 || newcar == sds6) { if(TakingLesson[playerid] == 1) { KillTimer(dmvtimer1); SendClientMessage(playerid,COLOR_WHITE,"** Ai la dispozitie {00bfff}75 {ffffff}secunde."); SendClientMessage(playerid,COLOR_WHITE,"** Condu cu grija pe partea dreapta si ai grija sa nu lovesti vehiculul."); CP[playerid] = 100; SetPlayerCheckpoint(playerid, 1042.3046,-1540.3511,13.0649,5.0); } else { SendClientMessage(playerid,COLOR_WHITE,"** Ne pare rau, dar acest vehicul este doar pentru cei care dau {00bfff}Scoala de Soferi{ffffff}."); RemovePlayerFromVehicle(playerid); } }
line 7836:{
2.
[10/09/2012 01:10:55] [debug] Run time error 4: "Array index out of bounds"
[10/09/2012 01:10:55] [debug] Accessing element at index 65535 past array upper bound 499
[10/09/2012 01:10:55] [debug] AMX backtrace:
[10/09/2012 01:10:55] [debug] #0 0001b86c in public OnPlayerDeath (playerid=0, killerid=65535, reason=255) at C:\Documents and Settings\cvl\Desktop\sv 0.3e\gamemodes\Gm.pwn:4257
line 4257: killerteam = gTeam[killerid];
rest...
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
SetPlayerFree(playerid,killerid, "Got Killed");
}
(+rep for solution) (+rep for solution) (+rep for solution)