(HELP) Houses
#1

Hey, i have 89 houses in my svr, but when i enter some, so i can't lock it in the house, i can't lock only out of house...
But when i'm in house, it's says you don't have key, please ?
Reply
#2

Eh, that's Godfather mod. You have to use Virtual World, because some of the houses have same interior.
Reply
#3

Let us see some code, i'm pretty sure there's an easy solution to this. And as ^ said GetPlayerVirtualWorld could probably be what missing.
Reply
#4

No it's not GF, I have that houses in scriptfiles folder, so how to change vw... i know maybe
Reply
#5

At /enter cmd, for each house, in the for loop, you set the virtual World:
PHP код:
SetPlayerVirtualWorld(playerid, (1)); // + 1 to prevent VW 0 
At /exit cmd, you just check the player's virtual world.
Reply
#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
#7

Show your lock command.
Reply
#8

All we need is your houses enumarations and the lock commands to modifie it
Reply
#9

You think this?
pawn Код:
HouseInfo[idx][hLock] = strval(arrCoords[18]);
or what
Reply
#10

I mean we need your /lockhouse or w/e its called command.. post the code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)