[HELP]Business.cfg Problem.
#1

Hello i have a server with business.cfg in scriptfiles. But i do not understand why when I added a new business when i tipe /exit it teleports me to the above business. Let me show you :

Here is my business.cfg :
pawn Код:
1480.982177,-1770.193603,18.795799,389.832000,173.746200,1008.382812,Los Santos Bank,For Sale,0,0,100000000,35,0,3,1,49400,98
1411.824340,-1699.709594,13.539484,246.292694,107.883499,1003.218811,Los Santos City Hall,0,0,0,80000000,40,0,10,2,53700,141
1368.526611,-1279.998901,13.546875,285.464996,-40.963600,1001.515625,Los Santos Ammunation,0,0,0,90000000,35,0,1,3,53700,141
1833.773803,-1842.511352,13.578125,-25.936800,-140.932800,1003.546875,69 Cent Store 24/7,0,0,0,50000000,25,0,16,4,55800,141
1286.777954,-1329.262451,13.554759,2016.269897,1017.778991,996.875000,Gambling Casino,0,0,0,60000000,30,0,10,5,53700,141
1553.182250,-1675.544189,16.195312,238.578994,139.562103,1003.023376,Los Santos PD,0,0,0,70000000,35,0,3,6,53700,141
2359.290527,-1312.530517,24.007268,377.032287,-192.824905,1000.640075,El Grand Burrito,For Sale,0,0,60000000,30,0,17,7,35000,35
2421.570800,-1219.254150,25.560806,966.818420,-53.249698,1001.124572,The Pig Pen,0,0,0,90000000,35,0,3,8,53700,141
2105.459228,-1806.463378,13.554677,372.416900,-133.170898,1001.492187,~w~The Well Stacked Pizz,0,0,0,40000000,20,0,5,9,59000,141
279.792449,-1435.318725,13.981554,-795.036682,489.767700,1376.195312,Restaurant,For Sale,0,0,40000000,35,0,1,10,51500,119
1835.655395,-1682.377807,13.380659,-2636.752685,1402.717895,906.460876,Jizzy Club ,0,0,0,80000000,35,0,3,11,53700,141
2016.269897,1017.778991,996.875000,1037.948608,-1338.393920,13.726593,Gambling Casino,For Sale,0,0,60000000,30,0,10,5,52200,126
2167.209472,-1672.338256,15.075496,318.565002,1115.209960,1082.979980,Drug House,For Sale,0,0,60000000,30,0,5,5,52200,126
I definded max business also : #define MAX_BUSINESSES 13

So when i /enter on Drug House and then /exit it teleports me to Gambling Casino enter. Can you help me ?
Reply
#2

BUMP 1!!!
Reply
#3

This is my business info :
pawn Код:
public OnBusinessUpdate()
{   if(pdebug == 1){print("[DEBUG] OnBusinessUpdate()");}

    new idx;
    new File: file2;
    while (idx < MAX_BUSINESSES)
    {
        new string2[256];
        format(string2, sizeof(string2), "%f,%f,%f,%f,%f,%f,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
        BusinessInfo[idx][bEntrancex],
        BusinessInfo[idx][bEntrancey],
        BusinessInfo[idx][bEntrancez],
        BusinessInfo[idx][bExitx],
        BusinessInfo[idx][bExity],
        BusinessInfo[idx][bExitz],
        BusinessInfo[idx][bDescription],
        BusinessInfo[idx][bOwner],
        BusinessInfo[idx][bOwned],
        BusinessInfo[idx][bLocked],
        BusinessInfo[idx][bPrice],
        BusinessInfo[idx][bLevel],
        BusinessInfo[idx][bEnterPrice],
        BusinessInfo[idx][bInt],
        BusinessInfo[idx][bWorld],
        BusinessInfo[idx][bMoney],
        BusinessInfo[idx][bNotUsed]);
        if(idx == 0)
        {
            if(city == 1){file2 = fopen("/settings/businesses_LS.cfg", io_write);}
        }
        else
        {
            if(city == 1){file2 = fopen("/settings/businesses_LS.cfg", io_append);}
        }
        fwrite(file2, string2);
        idx++;
        fclose(file2);
    }
    idx = 0;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)