27.06.2017, 03:23
(
Last edited by Arthur Kane; 03/07/2017 at 07:13 AM.
)
Edited: Irrelevant and no use to anyone. Current problem is on second page.
CMD:interiorlist(playerid)
{
if(!IsPlayerAdmin(playerid))
return 0;
new sub_str[100],
principal_str[250];
foreach(new i : It_Interior)
{
format(sub_str, sizeof(sub_str), "ID: %i » %s\n", i, BizInterior[i][i_Name]);
strcat(principal_str, sub_str);
}
Dialog_Show(playerid, NOTHING, DIALOG_STYLE_MSGBOX, "All custom interiors", principal_str, "Ok", "");
return 1;
}
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;
}
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;
}
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]);
--
PropertyData[FurnitureData[j][furniturePropertyID]][propertyInteriorWorld],
PropertyData[FurnitureData[j][furniturePropertyID]][propertyInteriorID]