Area Types?
#7

Quote:
Originally Posted by FarTooBaked
Посмотреть сообщение
Would this work in the following way? Am I able to use it like this?

pawn Код:
BusinessInfo[b][bLandlineArea] = CreateDynamicArea(areaid); <--- EXAMPLE (I know it's not the correct format)
Streamer_SetInt(STREAMER_TYPE_AREA, BusinessInfo[b][bLandlineArea], E_STREAMER_TYPE, BUSINESS_LANDLINE_AREA);
Streamer_SetInt(STREAMER_TYPE_AREA, BusinessInfo[b][bLandlineArea], E_STREAMER_EXTRA_ID, b);

public OnPlayerEnterDynamicArea(playerid, areaid)
{
    if(Streamer_GetInt(STREAMER_TYPE_AREA, areaid, E_STREAMER_TYPE) == BUSINESS_LANDLINE_AREA)
    {
        new b = Streamer_GetInt(STREAMER_TYPE_AREA, areaid, E_STREAMER_EXTRA_ID);
       
        LandlineInteraction[playerid] = 1;
        LandlineNo[playerid] = BusinessInfo[b][bLandlineNo];
        LandlineCode[playerid] = BusinessInfo[b][bLandlineCode];
       
        //THE PLAYER CAN NOW USE HOTKEY TO INTERACT WITH LANDLINE
    }
}
You can only add extra data to E_STREAMER_EXTRA_ID, the other elements or parts of enum are used by streamer plugin (though you can change them but in your case, no).

If you want to store multiple data for a specific area, you should look for the array function (Streamer_SetArrayData).
Reply


Messages In This Thread
Area Types? - by FarTooBaked - 05.02.2016, 13:05
Re: Area Types? - by Gammix - 05.02.2016, 13:23
Re: Area Types? - by FarTooBaked - 05.02.2016, 15:06
Re: Area Types? - by FarTooBaked - 05.02.2016, 15:27
Re: Area Types? - by amirm3hdi - 05.02.2016, 15:51
Re: Area Types? - by FarTooBaked - 05.02.2016, 17:21
Re: Area Types? - by Gammix - 05.02.2016, 22:24
Re: Area Types? - by AmigaBlizzard - 05.02.2016, 23:21

Forum Jump:


Users browsing this thread: 2 Guest(s)