A little problem
#1

Hi,
I got a little issue with using Incongito's Streamer.

The problem is:

I want to display a Map Icon for every business that is loaded by my script. The code which handles this looks like this:

pawn Код:
for(new idx = 0; idx < sizeof(BizzInfo) ; idx++)
    {
        new bicon;
        switch(BizzInfo[idx][Type])
        {
            case 0: //Tankstelle
            {
                bicon = 56;
            }
            case 1: //Essensbizz
            {
                bicon = 50;
            }
            case 2: //Ammu Nation
            {
                bicon = 18;
            }
            default:
            {
                bicon = 1;
            }
        }
       
        BizzInfo[idx][BIcon] = CreateDynamicMapIcon(BizzInfo[idx][EnterX],BizzInfo[idx][EnterY],BizzInfo[idx][EnterZ],bicon,0);
    }
It is located at OnGameModeInit .


The Issue is: It does display the Icon, but it always displays 2 at one time, that means one overlays the other one and that looks really bad.
Reply
#2

pawn Код:
for(new idx = 0; idx < sizeof(BizzInfo) ; idx++)
    {
        new bicon[sizeof(BizzInfo)];
        switch(BizzInfo[idx][Type])
        {
            case 0: //Tankstelle
            {
                bicon[idx] = 56;
            }
            case 1: //Essensbizz
            {
                bicon[idx] = 50;
            }
            case 2: //Ammu Nation
            {
                bicon[idx] = 18;
            }
            default:
            {
                bicon[idx] = 1;
            }
        }
       
        BizzInfo[idx][BIcon] = CreateDynamicMapIcon(BizzInfo[idx][EnterX],BizzInfo[idx][EnterY],BizzInfo[idx][EnterZ],bicon[idx],0);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)