[code][debug] Run time error 4: "Array index out of bounds"
[debug] Attempted to read/write array element at index 20 in array of size 20
[debug] AMX backtrace:
[debug] #0 003c0a00 in public OnPlayerKeyStateChange (playerid=0, newkeys=65536, oldkeys=0) at E:SA-MPPSSgamemodespst.pwn:28779[/code]
pst.pwn:28779 = PlayerTextDrawHide(i, RapcioTD[i][d]);
[code] if(PRESSED(KEY_YES))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, RapcioXYZ[0], RapcioXYZ[1], RapcioXYZ[2]) && RapcioOnOff)
{
Loop(i, 22)//22 - ilo?? obiekt?w
{
DestroyObject(RapcioOBJ[i]);
}
DestroyVehicle(RapcioID);
Delete3DTextLabel(Rapcio3DText);
RapcioOnOff = false;
new EXPDOG;
EXPDOG = randomEx(60, 100);
GiveExpPlayer(playerid, EXPDOG);
Player[playerid][Rapcio] ++;
SendClientMessageToAllEx(-1, ""INFO" "POMARANCZOWY_JASNY"[RAPCIO] "TEXT"%s znalaz?/a misia "POMARANCZOWY_JASNY"Rapcio "ZIELONY_JASNY"+%d EXP"TEXT"!", PlayerName2(playerid), EXPDOG);
SendClientMessageToAllEx(-1, ""INFO" "TEXT"To jej/jego "ZIELONY_JASNY"%d "POMARANCZOWY_JASNY"mi?"TEXT"!", Player[playerid][Rapcio]);
QuestSpr(playerid, QUEST_MIS);
Loop(i, GetMaxPlayers())
{
Loop(d, MAX_RAPCIO_TD)
{
PlayerTextDrawHide(i, RapcioTD[i][d]);
}
}
}[/code]
Wie kto? o co mo?e ... |