Hallo Community
ich habe ein debug meldung und bekomme den nicht weg
C
[13:49:30] [debug] Run time error 4: "Array index out of bounds"
[13:49:30] [debug] Accessing element at index 42 past array upper bound 2
[13:49:30] [debug] AMX backtrace:
[13:49:30] [debug] #0 000da2e8 in public OnPlayerStateChange (playerid=4, newstate=2, oldstate=1) at C:\Users\Paddy\Desktop\German of Life 7777\gamemodes\German-of-Life.pwn:18194
hier die zeile
Code
if(newstate == PLAYER_STATE_DRIVER)
{// 38 / 49 / 56 = SS
new newcar = GetPlayerVehicleID(playerid);
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
if(Parkkralle[newcar] == 1 || PlayerCar[playerid][newcar][Kralle] == 1)//zeile 18194
{
if(!IsPlayerInFrac(playerid, 6) && JobDuty[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_Parkkralle,DIALOG_STYLE_MSGBOX,"Parkkralle","Willst du die Parkkralle freikaufen? Preis: 5000$","JA","NEiN");//DIALOG_Parkkralle
}
}
}
Alles anzeigen