Streamer_IntSetData Question
#1

pawn Код:
//THE AREA
BusinessInfo[b][bLandlineArea] = CreateDynamicArea(); <---- //EXAMPLE I KNOW IT'S MISSING INFORMATION

Streamer_SetIntData(STREAMER_TYPE_AREA, BusinessInfo[b][bLandlineArea], E_STREAMER_TYPE, BUSINESS_LANDLINE_AREA);//STORE AREA TYPE
Streamer_SetIntData(STREAMER_TYPE_AREA, BusinessInfo[b][bLandlineArea], E_STREAMER_EXTRA_ID, b);//STORE BUSINESS ID

public OnPlayerEnterDynamicArea(playerid, areaid);
{
    if(Streamer_GetIntData(STREAMER_TYPE_AREA, areaid, E_STREAMER_TYPE) == BUSINESS_LANDLINE_AREA)//BUSINESS LANDLINE AREA
    {
        new businessid = Streamer_GetIntData(STREAMER_TYPE_AREA, areaid, E_STREAMER_EXTRA_ID);//GET THE BUSINESS ID STORED FOR THE AREA
       
        LandlineInteraction[playerid] = 1;
        LandlineNo[playerid] = BusinessInfo[businessid][bLandlineNo];//GET THE INFORMATION WE NEED TO INTERACT WITH THE LANDLINE
        LandlineCode[playerid] = BusinessInfo[businessid][bLandlineCode];
    }
}
I'd like to know if in this example E_STREAMER_EXTRA_ID and E_STREAMER_TYPE are unique to this areaid for example AreaInfo[areaid][E_STREAMER_EXTRA_ID] - OR - is it not unique and by that I mean am I simply setting E_STREAMER_EXTRA_ID to the business id and every areaid will be effected by this?

I hope I explained that right it's really important I understand this.
Reply


Messages In This Thread
Streamer_IntSetData Question - by FarTooBaked - 05.02.2016, 18:47
Re: Streamer_IntSetData Question - by Vince - 05.02.2016, 19:14
Re: Streamer_IntSetData Question - by FarTooBaked - 05.02.2016, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)