Garhouse
#1

Heey guys
I use GarHouse system for houses.
But i readed that the carsave dont work!
i copied the code:
Код:
stock SaveHouseCar(houseid)
{
    #if defined GH_HOUSECARS
        new file[HOUSEFILE_LENGTH], Float:tmpx, Float:tmpy, Float:tmpz;
        format(file, sizeof(file), "/GarHouse/Houses/%d.ini", houseid);
        if(dini_Exists(file) && dini_Int(file, "HCar") == 1)
        {
            tmpx = dini_Float(file, "HCarPosX"), tmpy = dini_Float(file, "HCarPosY"), tmpz = dini_Float(file, "HCarPosZ");
            Loop(v, MAX_VEHICLES)
            {
                if(GetVehicleModel(v) < 400 || GetVehicleModel(v) > 611 || IsVehicleOccupied(v)) continue;
                GetVehiclePos(v, X, Y, Z);
                if(PointInRangeOfPoint(HCAR_RANGE, X, Y, Z, tmpx, tmpy, tmpz))
                {
                    DestroyVehicle(v);
                    dini_IntSet(file, "HCarModel", GetVehicleModel(v));
                    break;
                }
            }
        }
    #endif
    return 1;
}
And paste it but i get errors:
Код:
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2719) : error 017: undefined symbol "dini_Exists"
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2721) : error 017: undefined symbol "dini_Float"
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2722) : error 017: undefined symbol "Loop"
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2724) : error 017: undefined symbol "v"
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2724) : error 024: "break" or "continue" is out of context
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2725) : error 017: undefined symbol "v"
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2728) : error 017: undefined symbol "v"
C:\Users\...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2729) : error 017: undefined symbol "dini_IntSet"
C:\Users...\Desktop\GTA San Andreas\filterscripts\GarHouse.pwn(2730) : error 024: "break" or "continue" is out of context
Pls help
Reply
#2

If u are talking about /addhcar
Then u must park the car, get in the house and /q there. Then it will spawn there
Reply
#3

No the cars dont save
Reply
#4

Well, I gave up on saving cars with GarHouse so I just saved them to the gamemode. Why dont u do that?
Reply
#5

I can do that but then is the car not for the owner from the house
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)