Bins
Новичок
[05:02:13] [MYSQL_HOUSES]: Загружено 121 домов
[05:02:13] [debug] Run time error 4: "Array index out of bounds"
[05:02:13] [debug] Attempted to read/write array element at index 15 in array of size 15
[05:02:13] [debug] AMX backtrace:
[05:02:13] [debug] #0 0012efd8 in public load_bizz () at C:\Users\пк\Desktop\Артурка\Сервер A&A\gamemodes\new.pwn:21614
[05:02:13] [MYSQL_SBIZZ]: Загружено 11 заправок
[05:02:13] [MYSQL_STO]: Загружено 3 СТО
[06:00:00] OnPropUpdate() : Предприятия успешно сохранены
[07:00:00] OnPropUpdate() : Предприятия успешно сохранены
[08:00:00] OnPropUpdate() : Предприятия успешно сохранены
[09:00:00] OnPropUpdate() : Предприятия успешно сохранены
[10:00:00] OnPropUpdate() : Предприятия успешно сохранены
[11:00:00] OnPropUpdate() : Предприятия успешно сохранены
[05:02:13] [debug] Run time error 4: "Array index out of bounds"
[05:02:13] [debug] Attempted to read/write array element at index 15 in array of size 15
[05:02:13] [debug] AMX backtrace:
[05:02:13] [debug] #0 0012efd8 in public load_bizz () at C:\Users\пк\Desktop\Артурка\Сервер A&A\gamemodes\new.pwn:21614
[05:02:13] [MYSQL_SBIZZ]: Загружено 11 заправок
[05:02:13] [MYSQL_STO]: Загружено 3 СТО
[06:00:00] OnPropUpdate() : Предприятия успешно сохранены
[07:00:00] OnPropUpdate() : Предприятия успешно сохранены
[08:00:00] OnPropUpdate() : Предприятия успешно сохранены
[09:00:00] OnPropUpdate() : Предприятия успешно сохранены
[10:00:00] OnPropUpdate() : Предприятия успешно сохранены
[11:00:00] OnPropUpdate() : Предприятия успешно сохранены
Крашит сервер при вводе команды: /makeadmin
pawno-info.ru
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
- Скачать- Так-же полный сервер лог прилaгаю ниже:
forward load_bizz();
public load_bizz() {
static rows;
cache_get_row_count(rows);
new str[100], idx;
for(idx = 0; idx < rows; idx++)
{
cache_get_value_name_int(idx, "id", BizzInfo[idx][bID]); // 21604
cache_get_value_name_int(idx, "owned", BizzInfo[idx][bOwned]);
cache_get_value_name_int(idx, "buyprice", BizzInfo[idx][bBuyPrice]);
cache_get_value_name_int(idx, "entrancecost", BizzInfo[idx][bEntranceCost]);
cache_get_value_name_int(idx, "till", BizzInfo[idx][bTill]);
cache_get_value_name_int(idx, "locked", BizzInfo[idx][bLocked]);
cache_get_value_name_int(idx, "interior", BizzInfo[idx][bInterior]);
cache_get_value_name_int(idx, "products", BizzInfo[idx][bProducts]);
cache_get_value_name_int(idx, "maxproducts", BizzInfo[idx][bMaxProducts]);
cache_get_value_name_int(idx, "priceprod", BizzInfo[idx][bPriceProd]);
cache_get_value_name_int(idx, "2till", BizzInfo[idx][b2Till]);
cache_get_value_name_int(idx, "cena", BizzInfo[idx][bCena]);
cache_get_value_name_int(idx, "mafia", BizzInfo[idx][bMafia]);
cache_get_value_name_int(idx, "getproducts", BizzInfo[idx][bGetProducts]);
cache_get_value_name(idx, "owner", BizzInfo[idx][bOwner], MAX_PLAYER_NAME);
cache_get_value_name(idx, "message", BizzInfo[idx][bMessage], 255);
cache_get_value_name(idx, "exortion", BizzInfo[idx][bExtortion], 255);
cache_get_value_name_float(idx, "entrance_x", BizzInfo[idx][bEntranceX]);
cache_get_value_name_float(idx, "entrance_y", BizzInfo[idx][bEntranceY]);
cache_get_value_name_float(idx, "entrance_z", BizzInfo[idx][bEntranceZ]);
cache_get_value_name_float(idx, "exit_x", BizzInfo[idx][bExitX]);
cache_get_value_name_float(idx, "exit_y", BizzInfo[idx][bExitY]);
cache_get_value_name_float(idx, "exit_z", BizzInfo[idx][bExitZ]);
cache_get_value_name_float(idx, "bar_x", BizzInfo[idx][bBarX]);
cache_get_value_name_float(idx, "bar_y", BizzInfo[idx][bBarY]);
cache_get_value_name_float(idx, "bar_z", BizzInfo[idx][bBarZ]);
if(BizzInfo[idx][bProducts] > 50000) BizzInfo[idx][bProducts] = 50000;
if(BizzInfo[idx][bOwned] == 0) {
CreateDynamicPickup(19132, 1, BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ]);
format(str, sizeof(str), "Цена: %d\nБизнес продаётся",BizzInfo[idx][bBuyPrice]);
BizzInfo[idx][bLocked] = 1;
BizzInfo[idx][bGetProducts] = 0;
BizzInfo[idx][bTill] = 0;
BizzInfo[idx][b2Till] = 0;
BizzInfo[idx][bCena] = 100;
BizzInfo[idx][bEntranceCost] = 100;
BizzInfo[idx][bMaxProducts] = 50000;
BizzInfo[idx][bLabel] = Create3DTextLabel("~~~~~~~~~~~~~~~~~\nИспользуйте команду\nв данном месте\n~~~~~~~~~~~~~~~~~",COLOR_YELLOW,BizzInfo[idx][bBarX],BizzInfo[idx][bBarY],BizzInfo[idx][bBarZ],20.0,0,1);
BizzInfo[idx][bLabel] = Create3DTextLabel(str,COLOR_YELLOW,BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ],20.0,0,1);
}
if(BizzInfo[idx][bOwned] == 1) {
CreateDynamicPickup(19132, 1, BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ]);
format(str,sizeof(str), "%s\nВладелец:\n %s", BizzInfo[idx][bMessage], BizzInfo[idx][bOwner]);
BizzInfo[idx][bLabel] = Create3DTextLabel(str,TEAM_GROVE_COLOR,BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ],20.0,0,1);
}
BizzInfo[idx][bAreaEnter] = CreateDynamicSphere(BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ], 1.3, 0, 0, -1);
}
printf("[MYSQL_BIZZ]: Загружено %i бизнесов", idx);
}
public load_bizz() {
static rows;
cache_get_row_count(rows);
new str[100], idx;
for(idx = 0; idx < rows; idx++)
{
cache_get_value_name_int(idx, "id", BizzInfo[idx][bID]); // 21604
cache_get_value_name_int(idx, "owned", BizzInfo[idx][bOwned]);
cache_get_value_name_int(idx, "buyprice", BizzInfo[idx][bBuyPrice]);
cache_get_value_name_int(idx, "entrancecost", BizzInfo[idx][bEntranceCost]);
cache_get_value_name_int(idx, "till", BizzInfo[idx][bTill]);
cache_get_value_name_int(idx, "locked", BizzInfo[idx][bLocked]);
cache_get_value_name_int(idx, "interior", BizzInfo[idx][bInterior]);
cache_get_value_name_int(idx, "products", BizzInfo[idx][bProducts]);
cache_get_value_name_int(idx, "maxproducts", BizzInfo[idx][bMaxProducts]);
cache_get_value_name_int(idx, "priceprod", BizzInfo[idx][bPriceProd]);
cache_get_value_name_int(idx, "2till", BizzInfo[idx][b2Till]);
cache_get_value_name_int(idx, "cena", BizzInfo[idx][bCena]);
cache_get_value_name_int(idx, "mafia", BizzInfo[idx][bMafia]);
cache_get_value_name_int(idx, "getproducts", BizzInfo[idx][bGetProducts]);
cache_get_value_name(idx, "owner", BizzInfo[idx][bOwner], MAX_PLAYER_NAME);
cache_get_value_name(idx, "message", BizzInfo[idx][bMessage], 255);
cache_get_value_name(idx, "exortion", BizzInfo[idx][bExtortion], 255);
cache_get_value_name_float(idx, "entrance_x", BizzInfo[idx][bEntranceX]);
cache_get_value_name_float(idx, "entrance_y", BizzInfo[idx][bEntranceY]);
cache_get_value_name_float(idx, "entrance_z", BizzInfo[idx][bEntranceZ]);
cache_get_value_name_float(idx, "exit_x", BizzInfo[idx][bExitX]);
cache_get_value_name_float(idx, "exit_y", BizzInfo[idx][bExitY]);
cache_get_value_name_float(idx, "exit_z", BizzInfo[idx][bExitZ]);
cache_get_value_name_float(idx, "bar_x", BizzInfo[idx][bBarX]);
cache_get_value_name_float(idx, "bar_y", BizzInfo[idx][bBarY]);
cache_get_value_name_float(idx, "bar_z", BizzInfo[idx][bBarZ]);
if(BizzInfo[idx][bProducts] > 50000) BizzInfo[idx][bProducts] = 50000;
if(BizzInfo[idx][bOwned] == 0) {
CreateDynamicPickup(19132, 1, BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ]);
format(str, sizeof(str), "Цена: %d\nБизнес продаётся",BizzInfo[idx][bBuyPrice]);
BizzInfo[idx][bLocked] = 1;
BizzInfo[idx][bGetProducts] = 0;
BizzInfo[idx][bTill] = 0;
BizzInfo[idx][b2Till] = 0;
BizzInfo[idx][bCena] = 100;
BizzInfo[idx][bEntranceCost] = 100;
BizzInfo[idx][bMaxProducts] = 50000;
BizzInfo[idx][bLabel] = Create3DTextLabel("~~~~~~~~~~~~~~~~~\nИспользуйте команду\nв данном месте\n~~~~~~~~~~~~~~~~~",COLOR_YELLOW,BizzInfo[idx][bBarX],BizzInfo[idx][bBarY],BizzInfo[idx][bBarZ],20.0,0,1);
BizzInfo[idx][bLabel] = Create3DTextLabel(str,COLOR_YELLOW,BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ],20.0,0,1);
}
if(BizzInfo[idx][bOwned] == 1) {
CreateDynamicPickup(19132, 1, BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ]);
format(str,sizeof(str), "%s\nВладелец:\n %s", BizzInfo[idx][bMessage], BizzInfo[idx][bOwner]);
BizzInfo[idx][bLabel] = Create3DTextLabel(str,TEAM_GROVE_COLOR,BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ],20.0,0,1);
}
BizzInfo[idx][bAreaEnter] = CreateDynamicSphere(BizzInfo[idx][bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ], 1.3, 0, 0, -1);
}
printf("[MYSQL_BIZZ]: Загружено %i бизнесов", idx);
}
Вложения
-
6.3 KB Просмотры: 1
