artem14
Умник
При удаление номера крашится паблик почему то , пытался разные варианты не помогло.
В чем причина так и не понял , вот код:
сам краш
помогите исправить.
В чем причина так и не понял , вот код:
PHP:
for (new q = 0; q <= 3 ; q++)
{
if(PI[playerid][cCarId][q] > 0)
{
DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][cCarId][q]]);// тут сама проблема.10442
}
}
PHP:
debug] Run time error 4: "Array index out of bounds"
[debug] Attempted to read/write array element at index 65535 in array of size 2000
[debug] AMX backtrace:
[debug] #0 0036a78c in public Itter_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Arte\Desktop\ORP\gamemodes\EXTRA.pwn:10442
[debug] #1 native CallLocalFunction () from sampsvr
[debug] #2 000088e4 in public Streamer_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Arte\Desktop\ORP\pawno\include\foreach.inc:735
[debug] #3 native CallLocalFunction () from sampsvr
[debug] #4 00007a6c in public SSCANF_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Arte\Desktop\ORP\pawno\include\streamer.inc:361
[debug] #5 00000bc4 in public OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Arte\Desktop\ORP\pawno\include\sscanf2.inc:260
[part] Artem_Storn has left the server (0:1)
