20.10.2014, 17:16
Hey guys. I'm having a small problem with my furniture system that I'm working on. Basically I made the loading/saving system and also the furniture command which adds a furniture that you can edit. It saves the file and all the variables are correct and it also loads all the files. However, it does not add the object to the server. There is no object there when I log in. I need some help. 
LOADING CODE:

LOADING CODE:
pawn Код:
new furniturestring[256];
for(new ida = 1; ida < sizeof(FurnitureInfo); ida++)
{
format(furniturestring, sizeof(furniturestring), FURNITUREPATH, ida);
INI_ParseFile(furniturestring, "loadfurniture_%s", .bExtra = true, .extra = ida );
}
new fcount;
for(new i= 0; i < MAX_FURNITURE; i++)
{
if(FurnitureInfo[i][furnitureID] != 0) fcount++;
FurnitureInfo[i][furnitureID] = CreateDynamicObject(FurnitureInfo[i][furnitureModel], FurnitureInfo[i][furnitureX], FurnitureInfo[i][furnitureY], FurnitureInfo[i][furnitureZ], FurnitureInfo[i][furniturerX], FurnitureInfo[i][furniturerY], FurnitureInfo[i][furniturerZ], FurnitureInfo[i][furnitureWorld], FurnitureInfo[i][furnitureInt], -1, 200.0, 0.0);
}
printf(" Loaded %d furnitures.", fcount);