[Data]
bOwned = 0
bPrice = 1000000
bOwner =
bType = 1
bLocked = 0
bMoney = 0
bEntranceX = 2026.305908
bEntranceY = 1343.175903
bEntranceZ = 10.820312
bEntranceA = 271.030029
bExitX = 286.148986
bExitY = -40.644397
bExitZ = 1001.515625
bExitA = 0.000000
bInt = 0
bWorld = 0
bInsideInt = 1
bInsideWorld = 2
bInsideIcon = 402
bOutSideIcon = 401
bName =
- either use different files (for each business, use Business%i.ini, where %i is your BusinessID)
|
public loadbiz_data(idx, name[], value[])
{
INI_Int("bOwned",BusinessInfo[idx][bOwned]);
INI_String("bOwner",BusinessInfo[idx][bOwner],24);
INI_Int("bPrice",BusinessInfo[idx][bPrice]);
INI_Int("bType",BusinessInfo[idx][bType]);
INI_Int("bLocked",BusinessInfo[idx][bLocked]);
INI_Int("bMoney",BusinessInfo[idx][bMoney]);
INI_Float("bEntranceX",BusinessInfo[idx][bEntranceX]);
INI_Float("bEntranceY",BusinessInfo[idx][bEntranceY]);
INI_Float("bEntranceZ",BusinessInfo[idx][bEntranceZ]);
INI_Float("bEntranceA",BusinessInfo[idx][bEntranceA]);
INI_Float("bExitX",BusinessInfo[idx][bExitX]);
INI_Float("bExitY",BusinessInfo[idx][bExitY]);
INI_Float("bExitZ",BusinessInfo[idx][bExitZ]);
INI_Float("bExitA",BusinessInfo[idx][bExitA]);
INI_Int("bInt",BusinessInfo[idx][bInt]);
INI_Int("bWorld",BusinessInfo[idx][bWorld]);
INI_Int("bInsideInt",BusinessInfo[idx][bInsideInt]);
INI_Int("bInsideInt",BusinessInfo[idx][bInsideInt]);
INI_Int("bInsideWorld",BusinessInfo[idx][bInsideWorld]);
INI_Int("bInsideIcon",BusinessInfo[idx][bInsideIcon]);
INI_Int("bOutSideIcon",BusinessInfo[idx][bOutSideIcon]);
INI_String("bName",BusinessInfo[idx][bName],128);
return 1;
}
stock loadbiz_data() { OPEN THE INI FILE HERE (i've no idea how you use this include) for(new idx=1; idx<THE MAX BIZ AMOUNT; idx++) { INI_Int("bOwned",BusinessInfo[idx][bOwned]); INI_String("bOwner",BusinessInfo[idx][bOwner],24); INI_Int("bPrice",BusinessInfo[idx][bPrice]); INI_Int("bType",BusinessInfo[idx][bType]); INI_Int("bLocked",BusinessInfo[idx][bLocked]); INI_Int("bMoney",BusinessInfo[idx][bMoney]); INI_Float("bEntranceX",BusinessInfo[idx][bEntranceX]); INI_Float("bEntranceY",BusinessInfo[idx][bEntranceY]); INI_Float("bEntranceZ",BusinessInfo[idx][bEntranceZ]); INI_Float("bEntranceA",BusinessInfo[idx][bEntranceA]); INI_Float("bExitX",BusinessInfo[idx][bExitX]); INI_Float("bExitY",BusinessInfo[idx][bExitY]); INI_Float("bExitZ",BusinessInfo[idx][bExitZ]); INI_Float("bExitA",BusinessInfo[idx][bExitA]); INI_Int("bInt",BusinessInfo[idx][bInt]); INI_Int("bWorld",BusinessInfo[idx][bWorld]); INI_Int("bInsideInt",BusinessInfo[idx][bInsideInt]); INI_Int("bInsideInt",BusinessInfo[idx][bInsideInt]); INI_Int("bInsideWorld",BusinessInfo[idx][bInsideWorld]); INI_Int("bInsideIcon",BusinessInfo[idx][bInsideIcon]); INI_Int("bOutSideIcon",BusinessInfo[idx][bOutSideIcon]); INI_String("bName",BusinessInfo[idx][bName],128); } CLOSE THE INI FILE HERE. }