21.11.2015, 23:22
Okay so im loading some objects from the SQL and storing them into HouseInfo[houseid][TempObject]. Well in other words im making funiture system.
Now my issue is simple, HouseInfo[houseid][TempObject] will store only 1 object into it, not all house objects, how can I store like 10 or such?
Basically my problem is
will store only 1 object into it, not all of them.
I know the problem but I dont know how to resolve it
Basically what im trying to achieve is
And make it store all of the objects inside them. Well in this case it should store 3 objects in HouseInfo[x][HouseObject]
Manualy it would be something like
But I want to have it automaticly store it all inside that loop
Now my issue is simple, HouseInfo[houseid][TempObject] will store only 1 object into it, not all house objects, how can I store like 10 or such?
pawn Код:
for(new x = 0; x < MAX_HOUSES;x++) {
if(HouseInfo[x][HID] == FurnitureInfo[i][FrMasterID]) {
HouseInfo[x][HouseObject] = CreateDynamicObject(FurnitureInfo[i][FrModelID],FurnitureInfo[i][FrPos][0],FurnitureInfo[i][FrPos][1],FurnitureInfo[i][FrPos][2],FurnitureInfo[i][FrRot][1],FurnitureInfo[i][FrRot][2],FurnitureInfo[i][FrRot][2],FurnitureInfo[i][FrWorld],FurnitureInfo[i][FrInterior]);
}
}
Basically my problem is
pawn Код:
HouseInfo[x][HouseObject] = CreateDynamicObject(FurnitureInfo[i][FrModelID],FurnitureInfo[i][FrPos][0],FurnitureInfo[i][FrPos][1],FurnitureInfo[i][FrPos][2],FurnitureInfo[i][FrRot][1],FurnitureInfo[i][FrRot][2],FurnitureInfo[i][FrRot][2],FurnitureInfo[i][FrWorld],FurnitureInfo[i][FrInterior]);
I know the problem but I dont know how to resolve it
Basically what im trying to achieve is
pawn Код:
HouseInfo[x][HouseObject][0]
HouseInfo[x][HouseObject][1]
HouseInfo[x][HouseObject][2]
Manualy it would be something like
pawn Код:
HouseInfo[houseid][HouseObject][0] = CreateDynamicObject...
HouseInfo[houseid][HouseObject][1] = CreateDynamicObject...
HouseInfo[houseid][HouseObject][2] = CreateDynamicObject...