A little help for bizz
#1

I dont know what means that on the end of biz (that businesses are from gtarp)

1272, -2243.077392, -88.254119, 35.320312, 270.197021, 139, 2 ; //

what means this 139, 2 please help
Reply
#2

Those could be the interior and/or world IDs for that specific business. I'm not familiar with the script, so cannot say for sure. If you could post the part of the code that loads the business data, I may be able to help you further.
Reply
#3

139 can't be interior because it 's too high number :S but what is it than
Reply
#4

Show us the script, it looks like either a savebiz or loadbiz function, we needa see that.
Reply
#5

Quote:

public LoadBizz()
{
new arrCoords[19][64];
new strFromFile2[256];
new File: file = fopen("cfg/bizz.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(BizzInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
BizzInfo[idx][bOwned] = strval(arrCoords[0]);
strmid(BizzInfo[idx][bOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
strmid(BizzInfo[idx][bMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
strmid(BizzInfo[idx][bExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
BizzInfo[idx][bEntranceX] = floatstr(arrCoords[4]);
BizzInfo[idx][bEntranceY] = floatstr(arrCoords[5]);
BizzInfo[idx][bEntranceZ] = floatstr(arrCoords[6]);
BizzInfo[idx][bExitX] = floatstr(arrCoords[7]);
BizzInfo[idx][bExitY] = floatstr(arrCoords[8]);
BizzInfo[idx][bExitZ] = floatstr(arrCoords[9]);
BizzInfo[idx][bLevelNeeded] = strval(arrCoords[10]);
BizzInfo[idx][bBuyPrice] = strval(arrCoords[11]);
BizzInfo[idx][bEntranceCost] = strval(arrCoords[12]);
BizzInfo[idx][bTill] = strval(arrCoords[13]);
BizzInfo[idx][bLocked] = strval(arrCoords[14]);
BizzInfo[idx][bInterior] = strval(arrCoords[15]);
BizzInfo[idx][bProducts] = strval(arrCoords[16]);
BizzInfo[idx][bMaxProducts] = strval(arrCoords[17]);
BizzInfo[idx][bPriceProd] = strval(arrCoords[18]);
printf("BizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.\n",
idx,
BizzInfo[idx][bOwner],
BizzInfo[idx][bMessage],
BizzInfo[idx][bEntranceCost],
BizzInfo[idx][bTill],
BizzInfo[idx][bProducts],
BizzInfo[idx][bMaxProducts],
BizzInfo[idx][bInterior]);
idx++;
}
fclose(file);
}
return 1;
}

loadbizz? there is it
Reply
#6

It's MaxProducts and PriceProd.
Reply
#7

ok ty and look i have bizz and sbizz cfg in scriptfiles cfg and I have properties, businesses text document I dont know how can I add my biz
Reply
#8

i think anyway...
Reply
#9

Quote:
Originally Posted by luis_mendoza
Посмотреть сообщение
139 can't be interior because it 's too high number :S but what is it than
I said and/or an interior ID or world ID. That would just be the guess from the line you showed.

Where is that line you posted above from? The file that you load the business from? If so, your system won't work correctly. If it's in a log file, or somewhere else, we'll need to see the code that prints/writes it to confirm what it is.
Reply
#10

this is one bizz of properties

1272, 1315.389648, -898.885803, 39.578125, 352.437835, 125, 2 ; // 24/7 LS (damo)

and one of bizz cfg

0|Drzava|Cluckin-Bell|No-One|926.081481|-1352.969238|13.376749|932.051208|-1353.114013|-22.488182|5|1000000|10|187|1|0|10|500|1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)