26.05.2014, 23:18
(
Последний раз редактировалось AiRaLoKa; 24.06.2014 в 01:17.
)
hi all....
is there any limitation for DrateDynamicMapIcon? becouse i have a lot of house icon. and it's all doesn't loaded
here is my code
and
the house label is just fine... but the icon doesn't load
is there any limitation for DrateDynamicMapIcon? becouse i have a lot of house icon. and it's all doesn't loaded
here is my code
pawn Код:
if(!strcmp(hInfo[houseid][Name],"For Sale",true))
{
format(string, sizeof(string), "{FFAF00}%s\n{FFFFFF}ID: {00C0FF}%d\n{FFFFFF}Cost: {00C0FF}%i", hInfo[houseid][Name],houseid,hInfo[houseid][Cost]);
housei[houseid] = CreateDynamic3DTextLabel(string,0x008080FF,iconX, iconY, iconZ,100.0);// For Sale
houser[houseid] = CreateDynamicMapIcon(iconX,iconY,iconZ, 31, -1);
}
else
{
format(string, sizeof(string), "{FFFFFF}Owner: {FFAF00}%s\n{FFFFFF}ID: {00C0FF}%d", hInfo[houseid][Name], houseid);
housei[houseid] = CreateDynamic3DTextLabel(string,0x008080FF,iconX, iconY, iconZ,100.0);// Owned
houser[houseid] = CreateDynamicMapIcon(iconX,iconY,iconZ, 32, -1);
}
pawn Код:
if(!strcmp(hInfo[i][Name],"For Sale",true))
{
format(string, sizeof(string), "{FFAF00}%s\n{FFFFFF}ID: {00C0FF}%d\n{FFFFFF}Harga: {00C0FF}%i", hInfo[i][Name],i,hInfo[i][Cost]);
UpdateDynamic3DTextLabelText(housei[i], 0xCCFFDDFF, string);//not bought
DestroyDynamicMapIcon(houser[i]);
houser[i] = CreateDynamicMapIcon(iconX,iconY,iconZ, 31, -1);
}
else
{
format(string, sizeof(string), "{FFFFFF}Owner: {FFAF00}%s\n{FFFFFF}ID: {00C0FF}%d", hInfo[i][Name],i);
UpdateDynamic3DTextLabelText(housei[i], 0xCCFFDDFF, string);//bought
DestroyDynamicMapIcon(houser[i]);
houser[i] = CreateDynamicMapIcon(iconX,iconY,iconZ, 32, -1);
}