10.05.2011, 22:01
Heey guys
I use GarHouse system for houses.
But i readed that the carsave dont work!
i copied the code:
And paste it but i get errors:
Pls help
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; }
Код:
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