Здравствуйте, подскажете пожалуйста как исправить ошибки?
PHP код:
[14:00:17] [debug] Run time error 4: "Array index out of bounds"
[14:00:17] [debug] Accessing element at index 29 past array upper bound 28
[14:00:17] [debug] AMX backtrace:
[14:00:17] [debug] #0 007e2054 in SelectCar (playerid=0) at C:\Users\new.pwn:46887
[14:00:17] [debug] #1 00092f7c in public OnPlayerUpdate (playerid=0) at C:\Users\new.pwn:10692
46887
Открыть/закрыть
PHP код:
PI[playerid][SalonCarID] = CreateVehicle(carsC[pPressed[playerid]][0],1105.7463,1542.9768,2316.1677,180.9068,colors[playerid][0]=random(10),colors[playerid][1]=random(10),10000);
10692
Открыть/закрыть
PHP код:
if(noclipdata[playerid][cameramode] == CAMERA_MODE_FLY)
PHP код:
[14:54:21] [debug] Run time error 4: "Array index out of bounds"
[14:54:21] [debug] Accessing element at index 65535 past array upper bound 499
[14:54:21] [debug] AMX backtrace:
[14:54:21] [debug] #0 001b3728 in public pc_cmd_canceldice (playerid=65535) at C:\Users\new.pwn:26498
[14:54:21] [debug] #1 00089788 in public OnPlayerKeyStateChange (playerid=1, newkeys=65536, oldkeys=0) atC:\Users\new.pwn:10101
26498
Открыть/закрыть
PHP код:
[PHP]if(KostiName[playerid] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, ""cER"Вы не предлагали никому игру!");
[/PHP]
10101
Открыть/закрыть