Server Chrashes -
Marcuse - 15.07.2013
Hello guys
Ive got a problem
My server worked normally but when i uploaded this
into my host and putted into server.cfg server chrashed every time i logged in the server chrashed so loggicly i deleted that out of the host and removed it from .cfg but the problem wasnt gone
help me please this is very important 2 me
Re: Server Chrashes -
bensmart469 - 15.07.2013
Run crashdetect, and post your errors.
Re: Server Chrashes -
Marcuse - 15.07.2013
Can it be coz of this?
Код:
[20:54:39] ==========================================
[20:54:39] | |
[20:54:39] | A new version (v3.09.0684) of YSI is |
[20:54:39] | available from: |
[20:54:39] | |
[20:54:39] | www.y-less.com/YSI/YSI_1.0.zip |
[20:54:39] | |
[20:54:39] | Changelog: |
[20:54:39] | |
[20:54:39] | 3.00.0000: |
[20:54:39] | |
[20:54:39] | YSI 3.0 released! Now includes the |
[20:54:39] | "y_text" library for better messages, |
[20:54:39] | and a reworked "y_classes" library. |
[20:54:39] | Largely documented here |
[20:54:39] | "http://forum.sa-mp.com/showthread.php |
[20:54:39] | ?t=321092". |
[20:54:39] | |
[20:54:39] | 3.01.0002: |
[20:54:39] | |
[20:54:39] | Small fixes to "y_text" and |
[20:54:39] | "y_classes". |
[20:54:39] | |
[20:54:39] | 3.09.0684: |
[20:54:39] | |
[20:54:39] | Reverted to old download location. |
[20:54:39] | Improved (and fixed) version checks; |
[20:54:39] | added y_bitmap, y_areas, y_races, |
[20:54:39] | y_zonenames, better documentation; |
[20:54:39] | MANY other bug fixes - see the github |
[20:54:39] | repository for more details: |
[20:54:39] | |
[20:54:39] ==========================================
Re: Server Chrashes -
Marcuse - 15.07.2013
Sry for dp but i needed 2 post this 2:
This is the debug i think from chrash detect
Код:
[21:02:23] [debug] Run time error 4: "Array index out of bounds"
[21:02:23] [debug] Accessing element at index 500 past array upper bound 499
[21:02:23] [debug] AMX backtrace:
[21:02:23] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:24] [debug] Run time error 4: "Array index out of bounds"
[21:02:24] [debug] Accessing element at index 500 past array upper bound 499
[21:02:24] [debug] AMX backtrace:
[21:02:24] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:25] [debug] Run time error 4: "Array index out of bounds"
[21:02:25] [debug] Accessing element at index 500 past array upper bound 499
[21:02:25] [debug] AMX backtrace:
[21:02:25] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:26] [debug] Run time error 4: "Array index out of bounds"
[21:02:26] [debug] Accessing element at index 500 past array upper bound 499
[21:02:26] [debug] AMX backtrace:
[21:02:26] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:27] [debug] Run time error 4: "Array index out of bounds"
[21:02:27] [debug] Accessing element at index 500 past array upper bound 499
[21:02:27] [debug] AMX backtrace:
[21:02:27] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:29] [debug] Run time error 4: "Array index out of bounds"
[21:02:29] [debug] Accessing element at index 500 past array upper bound 499
[21:02:29] [debug] AMX backtrace:
[21:02:29] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:30] [debug] Run time error 4: "Array index out of bounds"
[21:02:30] [debug] Accessing element at index 500 past array upper bound 499
[21:02:30] [debug] AMX backtrace:
[21:02:30] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:31] [debug] Run time error 4: "Array index out of bounds"
[21:02:31] [debug] Accessing element at index 500 past array upper bound 499
[21:02:31] [debug] AMX backtrace:
[21:02:31] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:32] [debug] Run time error 4: "Array index out of bounds"
[21:02:32] [debug] Accessing element at index 500 past array upper bound 499
[21:02:32] [debug] AMX backtrace:
[21:02:32] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:33] [debug] Run time error 4: "Array index out of bounds"
[21:02:33] [debug] Accessing element at index 500 past array upper bound 499
[21:02:33] [debug] AMX backtrace:
[21:02:33] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:34] [debug] Run time error 4: "Array index out of bounds"
[21:02:35] [debug] Accessing element at index 500 past array upper bound 499
[21:02:35] [debug] AMX backtrace:
[21:02:35] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:35] [debug] Run time error 4: "Array index out of bounds"
[21:02:35] [debug] Accessing element at index 500 past array upper bound 499
[21:02:35] [debug] AMX backtrace:
[21:02:35] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:36] [debug] Run time error 4: "Array index out of bounds"
[21:02:36] [debug] Accessing element at index 500 past array upper bound 499
[21:02:36] [debug] AMX backtrace:
[21:02:36] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:37] [debug] Run time error 4: "Array index out of bounds"
[21:02:37] [debug] Accessing element at index 500 past array upper bound 499
[21:02:37] [debug] AMX backtrace:
[21:02:37] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:38] [debug] Run time error 4: "Array index out of bounds"
[21:02:38] [debug] Accessing element at index 500 past array upper bound 499
[21:02:38] [debug] AMX backtrace:
[21:02:38] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:39] [debug] Run time error 4: "Array index out of bounds"
[21:02:39] [debug] Accessing element at index 500 past array upper bound 499
[21:02:39] [debug] AMX backtrace:
[21:02:39] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:41] [debug] Run time error 4: "Array index out of bounds"
[21:02:41] [debug] Accessing element at index 500 past array upper bound 499
[21:02:41] [debug] AMX backtrace:
[21:02:41] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:42] [debug] Run time error 4: "Array index out of bounds"
[21:02:42] [debug] Accessing element at index 500 past array upper bound 499
[21:02:42] [debug] AMX backtrace:
[21:02:42] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:43] [debug] Run time error 4: "Array index out of bounds"
[21:02:43] [debug] Accessing element at index 500 past array upper bound 499
[21:02:43] [debug] AMX backtrace:
[21:02:43] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:44] [debug] Run time error 4: "Array index out of bounds"
[21:02:44] [debug] Accessing element at index 500 past array upper bound 499
[21:02:44] [debug] AMX backtrace:
[21:02:44] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:45] [debug] Run time error 4: "Array index out of bounds"
[21:02:45] [debug] Accessing element at index 500 past array upper bound 499
[21:02:45] [debug] AMX backtrace:
[21:02:45] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:46] [debug] Run time error 4: "Array index out of bounds"
[21:02:46] [debug] Accessing element at index 500 past array upper bound 499
[21:02:46] [debug] AMX backtrace:
[21:02:46] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:47] [debug] Run time error 4: "Array index out of bounds"
[21:02:47] [debug] Accessing element at index 500 past array upper bound 499
[21:02:47] [debug] AMX backtrace:
[21:02:47] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:48] [debug] Run time error 4: "Array index out of bounds"
[21:02:48] [debug] Accessing element at index 500 past array upper bound 499
[21:02:48] [debug] AMX backtrace:
[21:02:48] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:49] [debug] Run time error 4: "Array index out of bounds"
[21:02:49] [debug] Accessing element at index 500 past array upper bound 499
[21:02:49] [debug] AMX backtrace:
[21:02:49] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:51] [debug] Run time error 4: "Array index out of bounds"
[21:02:51] [debug] Accessing element at index 500 past array upper bound 499
[21:02:51] [debug] AMX backtrace:
[21:02:51] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:52] [debug] Run time error 4: "Array index out of bounds"
[21:02:52] [debug] Accessing element at index 500 past array upper bound 499
[21:02:52] [debug] AMX backtrace:
[21:02:52] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:53] [debug] Run time error 4: "Array index out of bounds"
[21:02:53] [debug] Accessing element at index 500 past array upper bound 499
[21:02:53] [debug] AMX backtrace:
[21:02:53] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:54] [debug] Run time error 4: "Array index out of bounds"
[21:02:54] [debug] Accessing element at index 500 past array upper bound 499
[21:02:54] [debug] AMX backtrace:
[21:02:54] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:55] [debug] Run time error 4: "Array index out of bounds"
[21:02:55] [debug] Accessing element at index 500 past array upper bound 499
[21:02:55] [debug] AMX backtrace:
[21:02:55] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:56] [debug] Run time error 4: "Array index out of bounds"
[21:02:56] [debug] Accessing element at index 500 past array upper bound 499
[21:02:56] [debug] AMX backtrace:
[21:02:56] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:57] [debug] Run time error 4: "Array index out of bounds"
[21:02:57] [debug] Accessing element at index 500 past array upper bound 499
[21:02:57] [debug] AMX backtrace:
[21:02:57] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:58] [debug] Run time error 4: "Array index out of bounds"
[21:02:58] [debug] Accessing element at index 500 past array upper bound 499
[21:02:58] [debug] AMX backtrace:
[21:02:58] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:02:59] [debug] Run time error 4: "Array index out of bounds"
[21:02:59] [debug] Accessing element at index 500 past array upper bound 499
[21:02:59] [debug] AMX backtrace:
[21:02:59] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:01] [debug] Run time error 4: "Array index out of bounds"
[21:03:01] [debug] Accessing element at index 500 past array upper bound 499
[21:03:01] [debug] AMX backtrace:
[21:03:01] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:02] [debug] Run time error 4: "Array index out of bounds"
[21:03:02] [debug] Accessing element at index 500 past array upper bound 499
[21:03:02] [debug] AMX backtrace:
[21:03:02] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:03] [debug] Run time error 4: "Array index out of bounds"
[21:03:03] [debug] Accessing element at index 500 past array upper bound 499
[21:03:03] [debug] AMX backtrace:
[21:03:03] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:04] [debug] Run time error 4: "Array index out of bounds"
[21:03:04] [debug] Accessing element at index 500 past array upper bound 499
[21:03:04] [debug] AMX backtrace:
[21:03:04] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:05] [debug] Run time error 4: "Array index out of bounds"
[21:03:05] [debug] Accessing element at index 500 past array upper bound 499
[21:03:05] [debug] AMX backtrace:
[21:03:05] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:05] Incoming connection: 127.0.0.1:58733
[21:03:06] [join] Tony_Corleone has joined the server (0:127.0.0.1)
[21:03:06] [debug] Run time error 4: "Array index out of bounds"
[21:03:06] [debug] Accessing element at index 500 past array upper bound 499
[21:03:06] [debug] AMX backtrace:
[21:03:06] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:07] [debug] Run time error 4: "Array index out of bounds"
[21:03:07] [debug] Accessing element at index 500 past array upper bound 499
[21:03:07] [debug] AMX backtrace:
[21:03:07] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:08] [debug] Run time error 4: "Array index out of bounds"
[21:03:08] [debug] Accessing element at index 500 past array upper bound 499
[21:03:08] [debug] AMX backtrace:
[21:03:08] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:09] [debug] Run time error 4: "Array index out of bounds"
[21:03:09] [debug] Accessing element at index 500 past array upper bound 499
[21:03:09] [debug] AMX backtrace:
[21:03:09] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:11] [debug] Run time error 4: "Array index out of bounds"
[21:03:11] [debug] Accessing element at index 500 past array upper bound 499
[21:03:11] [debug] AMX backtrace:
[21:03:11] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:12] [debug] Run time error 4: "Array index out of bounds"
[21:03:12] [debug] Accessing element at index 500 past array upper bound 499
[21:03:12] [debug] AMX backtrace:
[21:03:12] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:13] [debug] Run time error 4: "Array index out of bounds"
[21:03:13] [debug] Accessing element at index 500 past array upper bound 499
[21:03:13] [debug] AMX backtrace:
[21:03:13] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:14] [debug] Run time error 4: "Array index out of bounds"
[21:03:14] [debug] Accessing element at index 500 past array upper bound 499
[21:03:14] [debug] AMX backtrace:
[21:03:14] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:15] [debug] Run time error 4: "Array index out of bounds"
[21:03:15] [debug] Accessing element at index 500 past array upper bound 499
[21:03:15] [debug] AMX backtrace:
[21:03:15] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:16] [debug] Run time error 4: "Array index out of bounds"
[21:03:16] [debug] Accessing element at index 500 past array upper bound 499
[21:03:16] [debug] AMX backtrace:
[21:03:16] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
[21:03:17] [debug] Run time error 4: "Array index out of bounds"
[21:03:17] [debug] Accessing element at index 500 past array upper bound 499
[21:03:17] [debug] AMX backtrace:
[21:03:17] [debug] #0 0004cd84 in public OstecenjeVozila () from WGRP.amx
Re: Server Chrashes -
Mattakil - 15.07.2013
Show that part of the code please.
public OstecenjeVozila ()
Re: Server Chrashes -
Marcuse - 15.07.2013
here
Код:
public OstecenjeVozila()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new Float:HP;
GetVehicleHealth(GetPlayerVehicleID(i), HP);
if(HP < 400.0)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(i), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(i), 0, lights, alarm, doors, bonnet, boot, objective);
TextDrawShowForPlayer(i, TDSpeedo4);
TextDrawHideForPlayer(i, TDSpeedo3);
}
}
if(!IsPlayerInAnyVehicle(i)) TextDrawHideForPlayer(i, TDSpeedo1[i]), TextDrawHideForPlayer(i, TDSpeedo2[i]), TextDrawHideForPlayer(i, TDSpeedo3), TextDrawHideForPlayer(i, TDSpeedo4);
}
return 1;
}
Re: Server Chrashes -
Marcuse - 15.07.2013
any help?
Re: Server Chrashes -
bensmart469 - 15.07.2013
It is this:
for(new i = 0; i < MAX_VEHICLES; i++)
Should be this:
for(new i = 0; i < MAX_PLAYERS; i++)
You got the errors for this reason, MAX_PLAYERS is defined as 500, and MAX_VEHICLES as 2000, so it was trying to go above 500 in the loop which was causing debug errors
Re: Server Chrashes -
ReVo_ - 15.07.2013
Compile your gamemode with -d3 will show the lines in the crash report anyway.
Anyway follow what bensmart469 said.
Re: Server Chrashes -
Marcuse - 16.07.2013
so i just need 2 put this
for(new i = 0; i < MAX_PLAYERS; i++)