(HELP) Houses
#6

Yes but, i have this ...
pawn Код:
public OnPropUpdate()
{
    new idx;
    new File: file2;
    while (idx < sizeof(HouseInfo))
    {
        new coordsstring[256];
        format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
        HouseInfo[idx][hEntrancex],
        HouseInfo[idx][hEntrancey],
        HouseInfo[idx][hEntrancez],
        HouseInfo[idx][hExitx],
        HouseInfo[idx][hExity],
        HouseInfo[idx][hExitz],
        HouseInfo[idx][hHealthx],
        HouseInfo[idx][hHealthy],
        HouseInfo[idx][hHealthz],
        HouseInfo[idx][hArmourx],
        HouseInfo[idx][hArmoury],
        HouseInfo[idx][hArmourz],
        HouseInfo[idx][hOwner],
        HouseInfo[idx][hDiscription],
        HouseInfo[idx][hValue],
        HouseInfo[idx][hHel],
        HouseInfo[idx][hArm],
        HouseInfo[idx][hInt],
        HouseInfo[idx][hLock],
        HouseInfo[idx][hOwned],
        HouseInfo[idx][hRooms],
        HouseInfo[idx][hRent],
        HouseInfo[idx][hRentabil],
        HouseInfo[idx][hTakings],
        HouseInfo[idx][hVec],
        HouseInfo[idx][hVcol1],
        HouseInfo[idx][hVcol2],
        HouseInfo[idx][hDate],
        HouseInfo[idx][hLevel],
        HouseInfo[idx][hWorld]);

        HouseInfo[idx][hWorld] = idx;
        if(idx == 0)
        {
            file2 = fopen("cfg/property.cfg", io_write);
        }
        else
        {
            file2 = fopen("cfg/property.cfg", io_append);
        }
        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
Virtual Wolrd is last and in scriptfiles/property.cfg i have something like this
pawn Код:
168.339935,-1769.108886,4.476675,83.300003,1324.699951,1083.800048,0,0,0,0,0,0,The State,6 Room House,3000000,0,0,9,1,0,0,474,1,0,418,-1,-1,193,1,27
but vw is still 0 in all house i think
Reply


Messages In This Thread
(HELP) Houses - by spaty2 - 23.07.2011, 09:19
Re: (HELP) Houses - by MoroDan - 23.07.2011, 12:01
Re: (HELP) Houses - by Cameltoe - 23.07.2011, 13:31
Re: (HELP) Houses - by spaty2 - 24.07.2011, 09:29
Re: (HELP) Houses - by MoroDan - 24.07.2011, 09:32
Re: (HELP) Houses - by spaty2 - 24.07.2011, 10:22
Re: (HELP) Houses - by MadeMan - 24.07.2011, 11:45
Re: (HELP) Houses - by TouR - 24.07.2011, 12:03
Re: (HELP) Houses - by spaty2 - 24.07.2011, 12:21
Re: (HELP) Houses - by TouR - 24.07.2011, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)