28.06.2017, 05:31
Might as well post it here. I'm having a problem with objects with this furniture system not being created.
It creates like 2 restarts later then doesn't.
It creates like 2 restarts later then doesn't.
PHP Code:
Server:SQL_LoadFurniture()
{
new rows, fields, count = 0;
cache_get_data(rows, fields, m_Handle);
if(rows){
for(new i = 0; i < rows && i < MAX_FURNITURE; i++){
FurnitureData[i+1][furnitureSQLID] = cache_get_field_content_int(i, "id", m_Handle);
...
FurnitureData[i+1][furnitureObject] = CreateDynamicObject(FurnitureData[i+1][furnituresModel], FurnitureData[i+1][furniturePos][0], FurnitureData[i+1][furniturePos][1], FurnitureData[i+1][furniturePos][2], FurnitureData[i+1][furnitureRot][0],
FurnitureData[i+1][furnitureRot][1], FurnitureData[i+1][furnitureRot][2], PropertyData[FurnitureData[i+1][furniturePropertyID]][propertyInteriorWorld], PropertyData[FurnitureData[i+1][furniturePropertyID]][propertyInteriorID]);
}
}
return true;
}