02.04.2015, 19:54
Tried making a command out of it, worked and put me in the house successfully.
Here is the array + enum:
pawn Код:
CMD:enterhouse(playerid, param[])
{
SetPlayerInterior(playerid, HouseData[1][hInterior]);
SetPlayerPos(playerid, HouseData[1][hiX],HouseData[1][hiY],HouseData[1][hiZ]);
return 1;
}
pawn Код:
enum _HouseData
{
hHouseID,
hOwnedBy[24],
hLocation[128],
hPrice,
hInterior,
Float:hiX,
Float:hiY,
Float:hiZ,
Float:heX,
Float:heY,
Float:heZ,
Text3D:hHouseText,
hPickupID,
hSlots,
hForSale,
hLocked,
hDefaultPrice,
hMapIcon,
};
new HouseData[MAX_HOUSES][_HouseData];