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
#2

sorry for bumping, i won't doing this, but is there any solution?

when i made a stunt map on blueberry acres, i found all of my house icon (actually on coordinate 0)

EDIT:
i fixed this bug...
i tried to change the
pawn Код:
iconX, iconY, iconZ
become
pawn Код:
hInfo[houseid][iconx],hInfo[houseid][icony],hInfo[houseid][iconz]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)