29.06.2017, 00:28
If it creates 2-3 times and doesn't create it later (rip english, apologize), the problem should come from your save system.
Also, this is bad practice, I guess, to make addition in array.
Also, this is bad practice, I guess, to make addition in array.
PHP Code:
Server:SQL_LoadFurniture()
{
new rows, fields, count = 0;
cache_get_data(rows, fields, m_Handle);
if(rows){
for(new i, j = 1; i < rows && i < MAX_FURNITURE; i++, j++){
FurnitureData[j][furnitureSQLID] = cache_get_field_content_int(i, "id", m_Handle);
...
FurnitureData[j][furnitureObject] = CreateDynamicObject(FurnitureData[j][furnituresModel], FurnitureData[j][furniturePos][0], FurnitureData[j][furniturePos][1], FurnitureData[j][furniturePos][2], FurnitureData[j][furnitureRot][0],
FurnitureData[j][furnitureRot][1], FurnitureData[j][furnitureRot][2], PropertyData[FurnitureData[j][furniturePropertyID]][propertyInteriorWorld], PropertyData[FurnitureData[j][furniturePropertyID]][propertyInteriorID]);
}
}
return true;
}