Problem with house system
#1

~Fixed~
Reply
#2

If you fixed a problem which you have already made a thread for, please share with us the problem and the solution for it so that newbies can also learn.
Reply
#3

well i was using that FS for houses
https://sampforum.blast.hk/showthread.php?tid=23051
Errors
pawn Код:
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(136) : error 017: undefined symbol "dini_Exists"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(138) : error 017: undefined symbol "dini_Create"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(140) : error 017: undefined symbol "dini_Set"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(142) : error 017: undefined symbol "dini_Set"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(144) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(146) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(148) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(150) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(152) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(153) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(156) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(160) : error 017: undefined symbol "dini_FloatSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(161) : error 017: undefined symbol "dini_FloatSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(162) : error 017: undefined symbol "dini_FloatSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(163) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(164) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(166) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(168) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(172) : error 017: undefined symbol "dini_FloatSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(173) : error 017: undefined symbol "dini_FloatSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(174) : error 017: undefined symbol "dini_FloatSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(177) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(178) : error 017: undefined symbol "dini_IntSet"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(192) : error 017: undefined symbol "dini_Get"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(193) : error 017: undefined symbol "dini_Get"
C:\Users\CraTzy\Desktop\LVDM\filterscripts\house.pwn(194) : error 017: undefined symbol "dini_Int"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Just Forgot to
pawn Код:
#include <dini>
Hope i helped to someone <3
and Yeah is there a way to add ingame House Creator ?
Like
If is that a Code for add Houses
Can i make a CMD witch allow me ingame /addhouse (Rcon only)

pawn Код:
AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Costa, Sella, Interiora, virtualworld)
{
    new house[256];
    format(house, sizeof(house), "Houses/houseid%d",houseid);
    if(!dini_Exists(house))
    {
        dini_Create(house);
        format(hInfo[houseid][Name], 24, "ForSale");
        dini_Set(house, "Name", "ForSale");
        format(hInfo[houseid][Renter], 24, "ForRent");
        dini_Set(house, "Renter", "ForRent");
        hInfo[houseid][Rentable] = 0;
        dini_IntSet(house, "Rentable", 0);
        hInfo[houseid][Rentcost] = 0;
        dini_IntSet(house, "Rentcost", 0);
        hInfo[houseid][Cost] = Costa;
        dini_IntSet(house, "Cost", Costa);
        hInfo[houseid][Sell] = Sella;
        dini_IntSet(house, "Sell", Sella);
        hInfo[houseid][Interior] = Interiora;
        dini_IntSet(house, "Interior", Interiora);
        dini_IntSet(house, "Virtualworld", virtualworld);
        hInfo[houseid][Virtualworld] = virtualworld;
        hInfo[houseid][Locked] = 1;
        dini_IntSet(house, "Locked", 1);
        hInfo[houseid][InteriorX] = interiorX;
        hInfo[houseid][InteriorY] = interiorY;
        hInfo[houseid][InteriorZ] = interiorZ;
        dini_FloatSet(house, "X", interiorX);
        dini_FloatSet(house, "Y", interiorY);
        dini_FloatSet(house, "Z", interiorZ);
        dini_IntSet(house, "RentPay", 0);
        dini_IntSet(house, "RentGet", 0);
        cInfo[houseid][HouseCar] = 429;
        dini_IntSet(house, "HouseCar", 0);
        cInfo[houseid][CarModel] = 429;
        dini_IntSet(house, "CarModel", 0);
        cInfo[houseid][CarX] = 0;
        cInfo[houseid][CarY] = 0;
        cInfo[houseid][CarZ] = 0;
        dini_FloatSet(house, "CarX", 0);
        dini_FloatSet(house, "CarY", 0);
        dini_FloatSet(house, "CarZ", 0);
        cInfo[houseid][CarColor1] = 0;
        cInfo[houseid][CarColor2] = 0;
        dini_IntSet(house, "CarColor1", 0);
        dini_IntSet(house, "CarColor2", 0);
        cInfo[houseid][GotCar] = 0;
        print("-");
        print("--------------House Created--------------");
        printf("- Houseid: %d", houseid);
        printf("- Buy Cost: %d", Costa);
        printf("- Sell Cost: %d", Sella);
        printf("- Interior: %d", Interiora);
        printf("- VirtualWorld: %d", virtualworld);
        print("-----------------------------------------");
        print("-");
    }
    else
    {
        format(hInfo[houseid][Name], 24, dini_Get(house, "Name"));
        format(hInfo[houseid][Renter], 24, dini_Get(house, "Renter"));
        hInfo[houseid][Rentable] = dini_Int(house, "Rentable");
        hInfo[houseid][Rentcost] = dini_Int(house, "Rentcost");
        hInfo[houseid][Cost] = dini_Int(house, "Cost");
        hInfo[houseid][Sell] = dini_Int(house, "Sell");
        hInfo[houseid][Interior] = dini_Int(house, "Interior");
        hInfo[houseid][Locked] = dini_Int(house, "Locked");
        hInfo[houseid][InteriorX] = dini_Float(house, "X");
        hInfo[houseid][InteriorY] = dini_Float(house, "Y");
        hInfo[houseid][InteriorZ] = dini_Float(house, "Z");
        hInfo[houseid][Virtualworld] = dini_Int(house, "Virtualworld");
    }
    hInfo[houseid][iconx]=iconX;
    hInfo[houseid][icony]=iconY;
    hInfo[houseid][iconz]=iconZ;
    format(house, sizeof(house), "Houses/houseid%d",houseid);
    if(strcmp(hInfo[houseid][Name],"ForSale",true)==0)
    {
        HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);//not bought
    }
    else
    {
        HousePickup[houseid] = CreatePickup(1272,23, iconX, iconY, iconZ);//bought
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)