CreateDynamicMapIcon
#1

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
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);
    }
and
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);
        }
the house label is just fine... but the icon doesn't load
Reply


Messages In This Thread
-[SOLVED]- CreateDynamicMapIcon - by AiRaLoKa - 26.05.2014, 23:18
Re: CreateDynamicMapIcon - by AiRaLoKa - 30.05.2014, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)