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).