help!! when i load my system it does not recognize anything but id 0 and nothing else
Код:
if(mysql_num_rows())
{
for(new i = 0; i < rows; i++)
{
DynamicMIInfo[i][dmiID] = cache_get_field_content_int(0, "ID");
DynamicMIInfo[i][dmiModel] = cache_get_field_content_int(0, "Model");
DynamicMIInfo[i][dmiColor] = cache_get_field_content_int(0, "Color");
DynamicMIInfo[i][dmiVW] = cache_get_field_content_int(0, "VW");
DynamicMIInfo[i][dmiInt] = cache_get_field_content_int(0, "Int");
DynamicMIInfo[i][dmiPosX] = cache_get_field_content_float(0, "PosX");
DynamicMIInfo[i][dmiPosY] = cache_get_field_content_float(0, "PosY");
DynamicMIInfo[i][dmiPosZ] = cache_get_field_content_float(0, "PosZ");
printf("ID: %d | Model: %d | Color: %d | VW: %d | Int: %d | PosX: %.4f | PosY: %.4f | PosZ: %.4f", DynamicMIInfo[i + 1][dmiID], DynamicMIInfo[i + 1][dmiModel], DynamicMIInfo[i + 1][dmiColor], DynamicMIInfo[i + 1][dmiVW], DynamicMIInfo[i + 1][dmiInt], DynamicMIInfo[i + 1][dmiPosX], DynamicMIInfo[i + 1][dmiPosY], DynamicMIInfo[i + 1][dmiPosZ]);
DynamicMIInfo[i][dmiID] = CreateDynamicMapIcon(DynamicMIInfo[i][dmiPosX], DynamicMIInfo[i][dmiPosY], DynamicMIInfo[i][dmiPosZ], DynamicMIInfo[i][dmiModel], DynamicMIInfo[i][dmiColor], DynamicMIInfo[i][dmiVW], DynamicMIInfo[i][dmiInt], -1, 500.0);
}
Код:
[20:52:10] function 'mysql_debug' is deprecated, use 'mysql_log' instead.
[20:52:12] ID: 0 | Model: 19 | Color: 0 | VW: 0 | Int: 0 | PosX: 1958.3800 | PosY: 1343.1600 | PosZ: 15.3746
[20:52:12] ID: 0 | Model: 19 | Color: 0 | VW: 0 | Int: 0 | PosX: 1958.3800 | PosY: 1343.1600 | PosZ: 15.3746
[20:52:12] 2 icons
[20:52:12]