SA-MP Forums Archive
Garhouse - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Garhouse (/showthread.php?tid=254453)



Garhouse - Admigo - 10.05.2011

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


Re: Garhouse - ColdIce - 10.05.2011

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


Re: Garhouse - Admigo - 10.05.2011

No the cars dont save


Re: Garhouse - ColdIce - 10.05.2011

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


Re: Garhouse - Admigo - 10.05.2011

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