----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[00:54:49] filterscripts = "" (string)
[00:54:49]
[00:54:49] Server Plugins
[00:54:49] --------------
[00:54:49] Loading plugin: crashdetect
[00:54:49] CrashDetect plugin 4.21
[00:54:49] Loaded.
[00:54:49] Loading plugin: mysql
[00:54:49] >> plugin.mysql: R39-6 successfully loaded.
[00:54:49] Loaded.
[00:54:49] Loading plugin: pawncmd
[00:54:49] [Pawn.CMD] plugin v3.3.6 loading...
[00:54:49] [Pawn.CMD]
| Pawn.CMD 3.3.6 | 2016 - 2021
|--------------------------------
| Author and maintainer: katursis
| Compiled: Sep 26 2021 at 11:55:10
|--------------------------------------------------------------
| Repository: https://github.com/katursis/Pawn.CMD
[00:54:49] Loaded.
[00:54:49] Loading plugin: sscanf
[00:54:49]
[00:54:49] ===============================
[00:54:49] sscanf plugin loaded.
[00:54:49] Version: 2.8.3
[00:54:49] (c) 2018 Alex "Y_Less" Cole
[00:54:49] ===============================
[00:54:49] Loaded.
[00:54:49] Loading plugin: streamer
[00:54:49]
*** Streamer Plugin v2.9.6 by Incognito loaded ***
[00:54:49] Loaded.
[00:54:49] Loading plugin: TOTP
[00:54:49] TOTP plugin v1.0.1 by Games loaded.
[00:54:49] Loaded.
[00:54:49] Loading plugin: nativechecker
[00:54:49] Loaded.
[00:54:49] Loaded 7 plugins.
[00:54:49]
[00:54:49] Filterscripts
[00:54:49] ---------------
[00:54:49] Loaded 0 filterscripts.
[00:54:51] MySQL connection: OK.
[00:54:51] [debug] Long callback execution detected (hang or performance issue)
[00:54:51] [debug] AMX backtrace:
[00:54:51] [debug] #0 000829cc in public PawnCmd_OnGameModeInit () at C:\Users\Денис\Desktop\Storm RolePlay\gamemodes\storm.pwn:1864
[00:54:51] [debug] #1 00077eb0 in public Iter_OnGameModeInit () at C:\Users\Денис\Desktop\Storm RolePlay\pawno\include\Pawn.CMD.inc:131
[00:54:51] [debug] #2 000090b8 in public ab_OnGameModeInit () at C:\Users\Денис\Desktop\Storm RolePlay\pawno\include\foreach.inc:660
[00:54:51] [debug] #3 0000772c in public SSCANF_OnGameModeInit () at C:\Users\Денис\Desktop\Storm RolePlay\pawno\include\airbreak.inc:39
[00:54:51] [debug] #4 00000a24 in public OnGameModeInit () at C:\Users\Денис\Desktop\Storm RolePlay\pawno\include\sscanf2.inc:211
[00:54:51] Number of vehicle models: 108
[00:54:53] [debug] Long callback execution detected (hang or performance issue)
[00:54:53] [debug] AMX backtrace:
[00:54:53] [debug] #0 002eae64 in public LoadPro (createall=1) at C:\Users\Денис\Desktop\Storm RolePlay\gamemodes\storm.pwn:32035
[00:54:53] [762] Дома загружены. [Длительность загрузки: 1 ms]
[00:54:53] [debug] Long callback execution detected (hang or performance issue)
[00:54:53] [debug] AMX backtrace:
[00:54:53] [debug] #0 002f9708 in SetCBiz (h=68) at C:\Users\Денис\Desktop\Storm RolePlay\gamemodes\storm.pwn:32671
[00:54:53] [debug] #1 002e9ab4 in public LoadBiz () at C:\Users\Денис\Desktop\Storm RolePlay\gamemodes\storm.pwn:31991
[00:54:53] Бизнесов загружено 163. [Длительность загрузки: 1 ms]
[00:54:53] АЗС загружено 21. [Длительность загрузки: 1 ms]
[00:54:53] Территорий загружено 120. [Длительность загрузки: 1 ms]
[00:54:53] [3] Склады мафий - загружены! [Длительность загрузки: 0 ms]
[00:54:53] Шахта загружена! [Длительность загрузки: 0 ms]
[00:54:53] [5] Склады банд - загружены. [Длительность загрузки: 2 ms]
[00:54:53] [3] Склады МО - загружены! [Длительность загрузки: 1 ms]
Сами функции со строками:
for(new i = 1; i < MAX_VEHICLES; i++) ругается на эту строку
{
VehicleFuel[i] = 45;
start_engine[i] = 0;
Sport[i] = 1;
signaling[i] = 60605;
}
SetTimer("SpeedoUpdate", 100, 1), SetTimer("FuelUpdate", 18000, 1);
forward LoadPro(createall);
public LoadPro(createall)
{
new rows, fields;
TotalHouse = cache_num_rows();
cache_get_data (rows, fields, dbHandle);
if(rows)
{
for(new indexsa = 1; indexsa <= rows; indexsa++)
{
HouseInfo[indexsa][ExitX] = cache_get_field_content_float(indexsa-1, "hExitX");
HouseInfo[indexsa][ExitY] = cache_get_field_content_float(indexsa-1, "hExitY");
HouseInfo[indexsa][ExitZ] = cache_get_field_content_float(indexsa-1, "hExitZ");
HouseInfo[indexsa][ExitIntX] = cache_get_field_content_float(indexsa-1, "hExitIntX");
HouseInfo[indexsa][ExitIntY] = cache_get_field_content_float(indexsa-1, "hExitIntY");
HouseInfo[indexsa][ExitIntZ] = cache_get_field_content_float(indexsa-1, "hExitIntZ");
HouseInfo[indexsa][CarX] = cache_get_field_content_float(indexsa-1, "hCarX");
HouseInfo[indexsa][CarY] = cache_get_field_content_float(indexsa-1, "hCarY");
HouseInfo[indexsa][CarZ] = cache_get_field_content_float(indexsa-1, "hCarZ");
HouseInfo[indexsa][CarA] = cache_get_field_content_float(indexsa-1, "hCarA");
HouseInfo[indexsa][hPrice] = cache_get_field_content_int(indexsa-1, "Price");
cache_get_field_content(indexsa-1, "Owner", HouseInfo[indexsa][hOwner], dbHandle, MAX_PLAYER_NAME+1);
HouseInfo[indexsa][hInt] = cache_get_field_content_int(indexsa-1, "Inter");
HouseInfo[indexsa][hLock] = cache_get_field_content_int(indexsa-1, "Locked");
HouseInfo[indexsa][hCar] = cache_get_field_content_int(indexsa-1, "Car");
HouseInfo[indexsa][hCarColorOne] = cache_get_field_content_int(indexsa-1, "CarColorOne");
HouseInfo[indexsa][hCarColorTwo] = cache_get_field_content_int(indexsa-1, "CarColorTwo");
HouseInfo[indexsa][hOwned] = cache_get_field_content_int(indexsa-1, "Owned");
HouseInfo[indexsa][hUpdate] = cache_get_field_content_int(indexsa-1, "Updates");
HouseInfo[indexsa][hClass] = cache_get_field_content_int(indexsa-1, "Class");
HouseInfo[indexsa][hRentPlata] = cache_get_field_content_int(indexsa-1, "Renta");
HouseInfo[indexsa][hRentTime] = cache_get_field_content_int(indexsa-1, "RentTime");
HouseInfo[indexsa][hWorld] = cache_get_field_content_int(indexsa-1, "World");
HouseInfo[indexsa][StoreX] = cache_get_field_content_float(indexsa-1, "hStoreX");
HouseInfo[indexsa][StoreY] = cache_get_field_content_float(indexsa-1, "hStoreY");
HouseInfo[indexsa][StoreZ] = cache_get_field_content_float(indexsa-1, "hStoreZ");
HouseInfo[indexsa][StoreMetall] = cache_get_field_content_int(indexsa-1, "hStoreMetall");
HouseInfo[indexsa][StoreAmmo] = cache_get_field_content_int(indexsa-1, "hStoreAmmo"); // ругается на эту строку
HouseInfo[indexsa][StoreDrugs] = cache_get_field_content_int(indexsa-1, "hStoreDrugs");
HouseInfo[indexsa][StoreSkin] = cache_get_field_content_int(indexsa-1, "hStoreSkin");
HouseInfo[indexsa][StoreGun] = cache_get_field_content_int(indexsa-1, "hStoreGun");
HouseInfo[indexsa][pWheels] = cache_get_field_content_int(indexsa-1, "pWheels");
HouseInfo[indexsa][pNitro] = cache_get_field_content_int(indexsa-1, "pNitro");
HouseInfo[indexsa][pHydrawlic] = cache_get_field_content_int(indexsa-1, "pHydrawlic");
HouseInfo[indexsa][pSpoiler] = cache_get_field_content_int(indexsa-1, "pSpoiler");
HouseInfo[indexsa][pBumper1] = cache_get_field_content_int(indexsa-1, "pBumper1");
HouseInfo[indexsa][pBumper2] = cache_get_field_content_int(indexsa-1, "pBumper2");
HouseInfo[indexsa][pPaintJob] = cache_get_field_content_int(indexsa-1, "pPaintJob");
if(createall)
{
if(HouseInfo[indexsa][hOwned] == 0)
{
HouseInfo[indexsa][hPickup] = CreatePickup(1273, 23, HouseInfo[indexsa][ExitX], HouseInfo[indexsa][ExitY], HouseInfo[indexsa][ExitZ],-1);
HouseInfo[indexsa][hMIcon] = CreateDynamicMapIcon(HouseInfo[indexsa][ExitX], HouseInfo[indexsa][ExitY], HouseInfo[indexsa][ExitZ], 31, -1, 0, -1, -1, 400.0);
}
if(HouseInfo[indexsa][hOwned] == 1)
{
HouseInfo[indexsa][hPickup] = CreatePickup(19522, 23, HouseInfo[indexsa][ExitX], HouseInfo[indexsa][ExitY], HouseInfo[indexsa][ExitZ],-1);
HouseInfo[indexsa][hMIcon] = CreateDynamicMapIcon(HouseInfo[indexsa][ExitX], HouseInfo[indexsa][ExitY], HouseInfo[indexsa][ExitZ], 32, -1, 0, -1, -1, 400.0);
}
CheckHouse(indexsa);
}
if(!createall)
{
UpdateHouse(indexsa);
}
}
printf("[%i] Дома загружены. [Длительность загрузки: %d ms]", TotalHouse, cache_get_query_exec_time(UNIT_MILLISECONDS));
}
return 1;
}
stock SetCBiz(h)
{
if(BizInfo[h][bOwned] == 0)
{
new string[128],hippys[128];
BizInfo[h][bPickup] = CreatePickup(19132, 23, BizInfo[h][ExitX], BizInfo[h][ExitY], BizInfo[h][ExitZ],-1);
BizInfo[h][bPickupTwo] = CreatePickup(19132, 23, BizInfo[h][ExitIntX], BizInfo[h][ExitIntY], BizInfo[h][ExitIntZ],BizInfo[h][bWorld]);
switch(BizInfo[h][bClass])
{
case 1: format(string,sizeof(string),"Магазин 24/7\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 2: format(string,sizeof(string),"Клуб\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 3: format(string,sizeof(string),"Клуб \"Jizzy\"\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 4: format(string,sizeof(string),"Стриптиз клуб\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 5: format(string,sizeof(string),"Бар\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]); // ругается на эту строку
case 6: format(string,sizeof(string),"Закусочная\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 7: format(string,sizeof(string),"Магазин одежды \"Binco\"\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 8: format(string,sizeof(string),"Магазин одежды \"Sub Urban\"\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 9: format(string,sizeof(string),"Ресторан\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 10: format(string,sizeof(string),"Магазин одежды \"Pro Laps\"\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 11: format(string,sizeof(string),"Магазин одежды \"Victim\"\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 12: format(string,sizeof(string),"Пиццерия\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 13: format(string,sizeof(string),"Магазин \"Всё для Хиппи\"\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 14: format(string,sizeof(string),"Магазин пиротехники\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 15: format(string,sizeof(string),"Концертный зал\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 16: format(string,sizeof(string),"Казино `Лос Сантос`\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 17: format(string,sizeof(string),"Южное казино\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 18: format(string,sizeof(string),"Восточное казино\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 19: format(string,sizeof(string),"Казино `Лас Вентурас`\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 20: format(string,sizeof(string),"Автосалон Лос-Сантоса\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 21: format(string,sizeof(string),"Мото-Вело рынок\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 22: format(string,sizeof(string),"Риэлторское агенство\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 23: format(string,sizeof(string),"Управление статистики\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 24: format(string,sizeof(string),"Sex Shop\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 25: format(string,sizeof(string),"SPA центр\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 26: format(string,sizeof(string),"Отделение банка\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 27: format(string,sizeof(string),"Клуб парашютистов\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 28: format(string,sizeof(string),"Развлекательный центр\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 29: format(string,sizeof(string),"Отель\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 30: format(string,sizeof(string),"Гостиница\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 31: format(string,sizeof(string),"Отель 'Las-Venturas'\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 32: format(string,sizeof(string),"Пиратская гостиница\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 33: format(string,sizeof(string),"Гост.комплекс 'Visage'\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
case 34: format(string,sizeof(string),"Автомастерская\n{00CC00}Бизнес продается\n{00CC00}Цена: %d$",BizInfo[h][bPrice]);
}
if(BizInfo[h][bClass] == 13 && BizInfo[h][bSellDrugs] == 0) format(hippys,sizeof(hippys),"Травы на складе: {66CC00}%d грамм\n{ffffff}Стоимость 1 г: {FF9900}%d$\n\n{ffcc99}В данный момент магазин\nне скупает траву у посетителей",BizInfo[h][bDrugs],BizInfo[h][bDrugsCena]);
if(BizInfo[h][bClass] == 13 && BizInfo[h][bSellDrugs] == 1) format(hippys,sizeof(hippys),"Травы на складе: {66CC00}%d грамм\n{ffffff}Стоимость 1 г: {FF9900}%d$\n\n{00CC00}Магазин скупает траву у посетителей\n{FFFFFF}По цене: {99FF33}%d$",BizInfo[h][bDrugs],BizInfo[h][bDrugsCena]);
BizInfo[h][Text] = Create3DTextLabel(string,0xFFFF00FF,BizInfo[h][ExitX], BizInfo[h][ExitY], BizInfo[h][ExitZ]+1,15.0,0,1);
if(BizInfo[h][bClass] == 1) BizInfo[h][bPickupMagaz] = CreatePickup(2663, 2, -29.0224,-185.1309,1003.5469,BizInfo[h][bWorld]);
if(BizInfo[h][bClass] == 13) BizInfo[h][Hippy] = Create3DTextLabel(hippys,COLOR_WHITE,273.9077,305.0173,1000.1484,15.0,BizInfo[h][bWorld],1);
}
if(BizInfo[h][bOwned] == 1)
{
new string[128],hippys[128];
BizInfo[h][bPickup] = CreatePickup(19132, 23, BizInfo[h][ExitX], BizInfo[h][ExitY], BizInfo[h][ExitZ],-1);
BizInfo[h][bPickupTwo] = CreatePickup(19132, 23, BizInfo[h][ExitIntX], BizInfo[h][ExitIntY], BizInfo[h][ExitIntZ],BizInfo[h][bWorld]);
if(BizInfo[h][bClass] == 1 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин 24/7\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 1 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин 24/7\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 2 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Клуб\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 2 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Клуб\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 3 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Клуб \"Jizzy\"\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 3 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Клуб \"Jizzy\"\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 4 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Стриптиз клуб\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 4 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Стриптиз клуб\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 5 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Бар\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 5 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Бар\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 6 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Закусочная\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 6 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Закусочная\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 7 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин одежды \"Binco\"\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 7 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин одежды \"Binco\"\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 8 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин одежды \"Sub Urban\"\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 8 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин одежды \"Sub Urban\"\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 9 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Ресторан\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 9 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Ресторан\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 10 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин одежды \"Pro Laps\"\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 10 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин одежды \"Pro Laps\"\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 11 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин одежды \"Victim\"\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 11 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин одежды \"Victim\"\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 12 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Пиццерия\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 12 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Пиццерия\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 13 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин \"Всё для Хиппи\"\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 13 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин \"Всё для Хиппи\"\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 13 && BizInfo[h][bSellDrugs] == 0) format(hippys,sizeof(hippys),"Травы на складе: {66CC00}%d грамм\n{ffffff}Стоимость 1 г: {FF9900}%d$\n\n{ffcc99}В данный момент магазин\nне скупает траву у посетителей",BizInfo[h][bDrugs],BizInfo[h][bDrugsCena]);
if(BizInfo[h][bClass] == 13 && BizInfo[h][bSellDrugs] == 1) format(hippys,sizeof(hippys),"Травы на складе: {66CC00}%d грамм\n{ffffff}Стоимость 1 г: {FF9900}%d$\n\n{00CC00}Магазин скупает траву у посетителей\n{FFFFFF}По цене: {99FF33}%d$",BizInfo[h][bDrugs],BizInfo[h][bDrugsCena]);
if(BizInfo[h][bClass] == 14 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Магазин пиротехники\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 14 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Магазин пиротехники\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 15 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Концертный зал\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 15 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Концертный зал\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 16 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Казино `Лос Сантос`\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 16 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Казино `Лос Сантос`\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 17 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Южное казино\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 17 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Южное казино\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 18 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Восточное казино\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 18 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Восточное казино\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 19 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Казино `Лас Вентурас`\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 19 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Казино `Лас Вентурас`\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 20 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Автосалон Лос-Сантоса\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 20 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Автосалон Лос-Сантоса\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 21 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Мото-Вело рынок\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 21 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Мото-Вело рынок\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 22 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Риэлторское агенство\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 22 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Риэлторское агенство\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 23 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Управление статистики\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 23 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Управление статистики\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 24 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Sex Shop\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 24 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Sex Shop\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 25 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"SPA центр\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 25 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"SPA центр\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 26 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Отделение банка\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 26 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Отделение банка\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 27 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Клуб парашютистов\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 27 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Клуб парашютистов\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 28 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Развлекательный центр\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 28 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Развлекательный центр\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 29 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Отель\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 29 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Отель\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 30 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Гостиница\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 30 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Гостиница\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 31 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Отель 'Las-Venturas'\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 31 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Отель 'Las-Venturas'\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 32 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Пиратская гостиница\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 32 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Пиратская гостиница\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 33 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Гост.комплекс 'Visage'\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 33 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Гост.комплекс 'Visage'\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 34 && BizInfo[h][bLock] == 0) format(string,sizeof(string),"Автомастерская\n{FFFFFF}Владелец: {0099FF}%s\n{0099FF}Бизнес открыт",BizInfo[h][bOwner]);
if(BizInfo[h][bClass] == 34 && BizInfo[h][bLock] == 1) format(string,sizeof(string),"Автомастерская\n{FFFFFF}Владелец: {0099FF}%s\n{FF6600}Бизнес закрыт",BizInfo[h][bOwner]);
BizInfo[h][Text] = Create3DTextLabel(string,0xFFFF00FF,BizInfo[h][ExitX], BizInfo[h][ExitY], BizInfo[h][ExitZ]+1,15.0,0,1);
if(BizInfo[h][bClass] == 1) BizInfo[h][bPickupMagaz] = CreatePickup(2663, 2, -29.0224,-185.1309,1003.5469,BizInfo[h][bWorld]);
if(BizInfo[h][bClass] == 13) BizInfo[h][Hippy] = Create3DTextLabel(hippys,COLOR_WHITE,273.9077,305.0173,1000.1484,15.0,BizInfo[h][bWorld],1);
}
}
forward LoadBiz();
public LoadBiz()
{
new rows, fields;
cache_get_data (rows, fields, dbHandle);
if(rows)
{
for(new indexsa = 1; indexsa <= rows; indexsa++)
{
BizInfo[indexsa][ExitX] = cache_get_field_content_float(indexsa-1, "ExitX");
BizInfo[indexsa][ExitY] = cache_get_field_content_float(indexsa-1, "ExitY");
BizInfo[indexsa][ExitZ] = cache_get_field_content_float(indexsa-1, "ExitZ");
BizInfo[indexsa][ExitIntX] = cache_get_field_content_float(indexsa-1, "ExitIntX");
BizInfo[indexsa][ExitIntY] = cache_get_field_content_float(indexsa-1, "ExitIntY");
BizInfo[indexsa][ExitIntZ] = cache_get_field_content_float(indexsa-1, "ExitIntZ");
BizInfo[indexsa][ExitTpX] = cache_get_field_content_float(indexsa-1, "ExitTpX");
BizInfo[indexsa][ExitTpY] = cache_get_field_content_float(indexsa-1, "ExitTpY");
BizInfo[indexsa][ExitTpZ] = cache_get_field_content_float(indexsa-1, "ExitTpZ");
BizInfo[indexsa][ExitTpA] = cache_get_field_content_float(indexsa-1, "ExitTpA");
BizInfo[indexsa][bPrice] = cache_get_field_content_int(indexsa-1, "Price");
cache_get_field_content(indexsa-1, "Owner", BizInfo[indexsa][bOwner], dbHandle, MAX_PLAYER_NAME+1);
BizInfo[indexsa][bInt] = cache_get_field_content_int(indexsa-1, "Inter");
BizInfo[indexsa][bLock] = cache_get_field_content_int(indexsa-1, "Locked");
BizInfo[indexsa][bUpdate] = cache_get_field_content_int(indexsa-1, "Updates");
BizInfo[indexsa][bOwned] = cache_get_field_content_int(indexsa-1, "Owned");
BizInfo[indexsa][bClass] = cache_get_field_content_int(indexsa-1, "Class");
BizInfo[indexsa][bRentPlata] = cache_get_field_content_int(indexsa-1, "RentPlata");
BizInfo[indexsa][bRentTime] = cache_get_field_content_int(indexsa-1, "RentTime");
BizInfo[indexsa][bWorld] = cache_get_field_content_int(indexsa-1, "World");
BizInfo[indexsa][bProd] = cache_get_field_content_int(indexsa-1, "Prod");
BizInfo[indexsa][bCash] = cache_get_field_content_int(indexsa-1, "Cash");
BizInfo[indexsa][bGosRent] = cache_get_field_content_int(indexsa-1, "GosRent");
BizInfo[indexsa][bGotoCena] = cache_get_field_content_int(indexsa-1, "GotoCena");
BizInfo[indexsa][bSellDrugs] = cache_get_field_content_int(indexsa-1, "SellDrugs");
BizInfo[indexsa][bSellCena] = cache_get_field_content_int(indexsa-1, "SellCena");
SetCBiz(indexsa);
TotalBusiness ++; // ругается в этом месте
CheckBusiness(indexsa);
}
printf("Бизнесов загружено %i. [Длительность загрузки: %d ms]", TotalBusiness, cache_get_query_exec_time(UNIT_MILLISECONDS));
}
return 1;
}
Это вот crashdetect выявил в самом моде. А еще и в инклудах, которые качал с gidhub.
[Pawn.CMD] plugin v3.3.6
public OnGameModeInit()
{
PC_Init();
#if defined PawnCmd_OnGameModeInit
PawnCmd_OnGameModeInit();
#endif
return 1; //ругается на эту строку
}
foreach не понял что за версия, ну на gidhub вроде как последняя
#if defined Iter_OnGameModeInit return Iter_OnGameModeInit(); // тут ругается
include airbreak
public OnGameModeInit()
{
E_AIRBREAK_ENUM[E_AIRBREAK_TIMER] = SetTimer("AirbreakCheck", 1000, true);
state _ALS_:hooked;
return ab_OnGameModeInit();
}
sscanf2 Version: 2.8.3
public OnGameModeInit()
{
if (!SSCANF_gInit)
{
new
name[MAX_PLAYER_NAME + 1];
SSCANF_Init(GetMaxPlayers(), INVALID_PLAYER_ID, MAX_PLAYER_NAME);
SSCANF_gInit = true;
// Check if there are any players that aren't initialized.
for (new i = 0; i < MAX_PLAYERS; i ++)
{
if (IsPlayerConnected(i) && !SSCANF_IsConnected(i))
{
GetPlayerName(i, name, sizeof(name));
SSCANF_Join(i, name, IsPlayerNPC(i));
}
}
}
#if defined SSCANF_OnGameModeInit
SSCANF_OnGameModeInit();
#endif
return 1; // тут ругается
}
Что это вообще может быть? Как с этим бороться? Прошу помогите пожалуйста решить. Плюсами закидаю!!!
Вход
Регистрация
Помощь

Тема закрыта







