Крашит мод, MzCheck...CrashDetect выводит ошибки указывающие на:
В чём проблема?PHP код:
for(new i =0;i<3;i++)
{
for(new z = 0;z<20;z++){OnmZONE[i][z] =0;}
}
Вид для печати
Крашит мод, MzCheck...CrashDetect выводит ошибки указывающие на:
В чём проблема?PHP код:
for(new i =0;i<3;i++)
{
for(new z = 0;z<20;z++){OnmZONE[i][z] =0;}
}
PHP код:
for(new i = 0; i < sizeof(OnmZONE); i++)
{
for(new z = 0; z < sizeof(OnmZONE[]); z++)
OnmZONE[i][z] = 1;
}
Что именно crashdetect пишет? Да и не проще ли сделать так:
?PHP код:
for(new z = 0;z<20;z++)
{
OnmZONE[0][z] =0;
OnmZONE[1][z] =0;
OnmZONE[2][z] =0;
}
Не только на MzCheck но и SetPlayerUnjail вот сам лог:
Строка:Код:[19:52:21] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:23] [debug] Run time error 4: "Array index out of bounds"
[19:52:23] [debug] Accessing element at index 1 past array upper bound 0
[19:52:23] [debug] AMX backtrace:
[19:52:23] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:24] [debug] Run time error 4: "Array index out of bounds"
[19:52:24] [debug] Accessing element at index 1 past array upper bound 0
[19:52:24] [debug] AMX backtrace:
[19:52:24] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:25] [debug] Run time error 4: "Array index out of bounds"
[19:52:25] [debug] Accessing element at index 1 past array upper bound 0
[19:52:25] [debug] AMX backtrace:
[19:52:25] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:26] [debug] Run time error 4: "Array index out of bounds"
[19:52:26] [debug] Accessing element at index 1 past array upper bound 0
[19:52:26] [debug] AMX backtrace:
[19:52:26] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:27] [debug] Run time error 4: "Array index out of bounds"
[19:52:27] [debug] Accessing element at index 1 past array upper bound 0
[19:52:27] [debug] AMX backtrace:
[19:52:27] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:28] [debug] Run time error 4: "Array index out of bounds"
[19:52:28] [debug] Accessing element at index 1 past array upper bound 0
[19:52:28] [debug] AMX backtrace:
[19:52:28] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
[19:52:29] [debug] Run time error 4: "Array index out of bounds"
[19:52:29] [debug] Accessing element at index 1 past array upper bound 0
[19:52:29] [debug] AMX backtrace:
[19:52:29] [debug] #0 00126aac in public SetPlayerUnjail () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:21257
PHP код:
if(MZSafeTime[f]>0)
Покажите инициализацию цикла.
PHP код:
for(new f =0;f<3;f++)
{
if(MZSafeTime[f]>0)
{
MZSafeTime[f] --;
if(MZSafeTime[f] == 200 || MZSafeTime[f] == 450)
{
format(string,sizeof(string),"::: У вас осталось %d секунд. Место встречи: Заброшенный аэропорт:::",MZSafeTime[f]);
SendFamilyMessage(MZInfo[f][mNapad],COLOR_RED,string);
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bZahvat] == 1){SendFamilyMessage(BizzInfo[h][bMafia],COLOR_RED,string);}
}
}
}
}
наPHP код:
for(new f =0;f<3;f++)
?PHP код:
for(new f; f < sizeof(MZSafeTime); f++)
Спасибо, помогло.
Теперь:
Строка:Код:[20:13:00] [debug] Run time error 4: "Array index out of bounds"
[20:13:00] [debug] Accessing element at index 1 past array upper bound 0
[20:13:00] [debug] AMX backtrace:
[20:13:00] [debug] #0 00039f68 in public MzCheck () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:2868
[20:13:11] [debug] Run time error 4: "Array index out of bounds"
[20:13:11] [debug] Accessing element at index 1 past array upper bound 0
[20:13:11] [debug] AMX backtrace:
[20:13:11] [debug] #0 00039f68 in public MzCheck () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:2868
[20:13:22] [debug] Run time error 4: "Array index out of bounds"
[20:13:22] [debug] Accessing element at index 1 past array upper bound 0
[20:13:22] [debug] AMX backtrace:
[20:13:22] [debug] #0 00039f68 in public MzCheck () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:2868
[20:13:33] [debug] Run time error 4: "Array index out of bounds"
[20:13:33] [debug] Accessing element at index 1 past array upper bound 0
[20:13:33] [debug] AMX backtrace:
[20:13:33] [debug] #0 00039f68 in public MzCheck () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:2868
[20:13:44] [debug] Run time error 4: "Array index out of bounds"
[20:13:44] [debug] Accessing element at index 1 past array upper bound 0
[20:13:44] [debug] AMX backtrace:
[20:13:44] [debug] #0 00039f68 in public MzCheck () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:2868
[20:13:55] [debug] Run time error 4: "Array index out of bounds"
[20:13:55] [debug] Accessing element at index 1 past array upper bound 0
[20:13:55] [debug] AMX backtrace:
[20:13:55] [debug] #0 00039f68 in public MzCheck () at C:\Users\Admin\Downloads\Sunshine Role Play(YourGame.su)\Sunshine Role Play(YourGame.su)\gamemodes\Sunshine(YourGame).pwn:2868
Полный код:PHP код:
for(new z = 0;z<20;z++){OnmZONE[i][z] =0;}
PHP код:
for(new i =0;i<3;i++)
{
for(new z = 0;z<20;z++){OnmZONE[i][z] =0;}
}
Опять же, показывайте цикл
Показал, обновил.