- 0
Problema LoadBizz
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
InceMan
Problema intalnita (descriere):de vre-o cateva zile ma chinuiesc sa rezolv bugul la public LoadBizz() si nu reusesc nu imi dau seama de la ce ar putea sa fie
Ero(area / rile) / warning-(ul / urile):
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[08:45:41]
[08:45:41] Server Plugins
[08:45:41] --------------
[08:45:41] Loading plugin: crashdetect.so
[08:45:41] CrashDetect v4.15.1 is OK.
[08:45:41] Loaded.
[08:45:41] Loading plugin: streamer.so
[08:45:41]
*** Streamer Plugin v2.7.9 by Incognito loaded ***
[08:45:41] Loaded.
[08:45:41] Loading plugin: sscanf.so
[08:45:41]
[08:45:41] ===============================
[08:45:41] sscanf plugin loaded.
[08:45:41] Version: 2.8.1
[08:45:41] (c) 2012 Alex "Y_Less" Cole
[08:45:41] ===============================
[08:45:41] Loaded.
[08:45:41] Loading plugin: mysql_5.5.so
[08:45:41] >> plugin.mysql: R34 successfully loaded.
[08:45:41] Loaded.
[08:45:41] Loading plugin: mysql.so
[08:45:41] >> plugin.mysql: R38 successfully loaded.
[08:45:41] Loaded.
[08:45:41] Loading plugin: profiler.so
[08:45:41] Profiler v2.10.4 is OK.
[08:45:41] Loaded.
[08:45:41] Loading plugin: mysql_static.so
[08:45:41] >> plugin.mysql: R34 successfully loaded.
[08:45:41] Loaded.
[08:45:41] Loaded 7 plugins.
[08:45:41]
[08:45:41] Filterscripts
[08:45:41] ---------------
[08:45:41] Loading filterscript 'Harta.amx'...
[08:45:41] Unable to load filterscript 'Harta.amx'.
[08:45:41] Loaded 0 filterscripts.
[08:45:41] Turfs: 48
[08:45:41] 1509 - Objects.
[08:45:41] 19 - Pickups.
[08:45:41] OnGameModeInit Loaded
[08:45:41] Script Loaded - Andu & Shower. FiveGame RPG v4.1.0
[08:45:41] Number of vehicle models: 120
[08:45:41] Houses: 103
[08:45:41] [debug] Run time error 4: "Array index out of bounds"
[08:45:41] [debug] Accessing element at index 55 past array upper bound 54
[08:45:41] [debug] AMX backtrace:
[08:45:41] [debug] #0 000e9a74 in public LoadBizz () at C:\Users\andu\Desktop\FIVEGAME 2016\samp03\gamemodes\FiveGame.pwn:15988
[08:45:41] Dynamic Factions: 14
[08:45:41] Clans: 2
[08:45:41] Cars: 51
[08:45:41] Stocks: 101
Liniile de cod / sursa / script-ul(obligatoriu):public LoadBizz()
{
new PropertyString[256];
bussines = cache_num_rows();
for(new i = 1; i <= bussines; i++)
{
new b = i - 1;
BizzInfo[bID] = cache_get_field_content_int(b, "ID");
BizzInfo[bOwned] = cache_get_field_content_int(b, "Owned");
cache_get_field_content(b, "Owner", BizzInfo[bOwner], SQL, 130);
cache_get_field_content(b, "Message", BizzInfo[bMessage], SQL, 130);
BizzInfo[bEntranceX] = cache_get_field_content_float(b, "EntranceX");
BizzInfo[bEntranceY] = cache_get_field_content_float(b, "EntranceY");
BizzInfo[bEntranceZ] = cache_get_field_content_float(b, "EntranceZ");
BizzInfo[bExitX] = cache_get_field_content_float(b, "ExitX");
BizzInfo[bExitY] = cache_get_field_content_float(b, "ExitY");
BizzInfo[bExitZ] = cache_get_field_content_float(b, "ExitZ");
BizzInfo[bLevelNeeded] = cache_get_field_content_int(b, "LevelNeeded");
BizzInfo[bBuyPrice] = cache_get_field_content_int(b, "BuyPrice");
BizzInfo[bEntranceCost] = cache_get_field_content_int(b, "EntranceCost");
BizzInfo[bTill] = cache_get_field_content_int(b, "Till");
BizzInfo[bLocked] = cache_get_field_content_int(b, "Locked");
BizzInfo[bInterior] = cache_get_field_content_int(b, "Interior");
BizzInfo[bVirtual] = cache_get_field_content_int(b, "Virtual");
BizzInfo[bSbiz] = cache_get_field_content_int(b, "Sbiz");
BizzInfo[bType] = cache_get_field_content_int(b, "Type");
if(BizzInfo[bOwned] == 0)
{
DestroyDynamic3DTextLabel(BizzLabel);
format(PropertyString, sizeof(PropertyString),"{357AB7}%s \n{FFFFFF}Business {357AB7}#%d \n{357AB7}This Business is for sale(/buybiz) ! \n{FFFFFF}Owner: {357AB7}AdmBot \n {FFFFFF}Price: {357AB7}%s \n{FFFFFF}Level: {357AB7}%d",BizzInfo[bMessage],i,FormatNumber(BizzInfo[bBuyPrice]),BizzInfo[bLevelNeeded]);
BizzLabel = CreateDynamic3DTextLabel(PropertyString ,0x0066FFCC,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
CreateDynamicPickup(1239, 1, BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]);
pickups++;
}
else if(BizzInfo[bOwned] == 1)
{
DestroyDynamic3DTextLabel(BizzLabel);
format(PropertyString, sizeof(PropertyString),"{357AB7}%s \n{FFFFFF}Business {357AB7}#%d \n{FFFFFF}Owner: {357AB7}%s \n{FFFFFF}Fee: {357AB7}$%s",BizzInfo[bMessage],i,BizzInfo[bOwner],FormatNumber(BizzInfo[bEntranceCost]));
BizzLabel = CreateDynamic3DTextLabel(PropertyString ,0x0066FFCC,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
CreateDynamicPickup(1239, 1, BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]);
pickups++;
}
if(BizzInfo[bType] == 1) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],52,0,-1,-1,-1,750.0); //Bank
if(BizzInfo[bType] == 2) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],18,0,-1,-1,-1,750.0); //GunShop
if(BizzInfo[bType] == 3) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],49,0,-1,-1,-1,750.0); //Bars
if(BizzInfo[bType] == 4) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],38,0,-1,-1,-1,750.0); //Sex Shop
if(BizzInfo[bType] == 5) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],25,0,-1,-1,-1,750.0); //Casino
if(BizzInfo[bType] == 6) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],17,0,-1,-1,-1,750.0); //24/7
if(BizzInfo[bType] == 7) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],10,0,-1,-1,-1,750.0); //Burger Shot
if(BizzInfo[bType] == 8) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],54,0,-1,-1,-1,750.0); //Gym
if(BizzInfo[bType] == 9) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],29,0,-1,-1,-1,750.0); //Pizza
if(BizzInfo[bType] == 10) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],51,0,-1,-1,-1,750.0); //Rent Car
if(BizzInfo[bType] == 11) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],45,0,-1,-1,-1,750.0); //Clothes
if(BizzInfo[bType] == 12) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],27,0,-1,-1,-1,750.0); //Gas Station
if(BizzInfo[bType] == 13) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],63,0,-1,-1,-1,750.0); //PNS
if(BizzInfo[bType] == 14) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],14,0,-1,-1,-1,750.0); //Cluckin Bell
}
printf("Bussines: %d", bussines);
return 1;
}
Imagini / Video (optional):nu am
Ati incercat sa rezolvati singur?:da
FiveGame Lands
Pawno Developer, Mapping , Scripter
Since 2016
7 answers to this question
Recommended Posts