• 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Dynamic Polygon Street Names
#1
Good evening all,

I'm currently setting up polygon areas for street names. Currently, I have it set as follows:

Code:
new area_StreetName;
new Float:Array_StreetName[] =
{
   x, y,
   x, y,
   x, y
};

I have about 20 of these so far, and to me, this seems really inefficient.

What I would like, is a float which contains the street name, and county, and then the points, like so...

Code:
new Float:StreetNames[][StreetInfo]
{ "StreetName", "TownName, CountyName", POINTS },

Code:
enum StreetInfo {
   StreetName_1[64],
   StreetName_2[64],
   Float:POINTS
};

Perhaps using an enum to store that information. But because the amount of points for a given street could be anything from 4 to 25 points, how would I go about storing this into an enum?

Thanks
  Reply


Messages In This Thread
Dynamic Polygon Street Names - by Torque - 2020-08-21, 09:11 PM
RE: Dynamic Polygon Street Names - by Pinch - 2020-08-22, 01:02 PM
RE: Dynamic Polygon Street Names - by Torque - 2020-08-22, 06:21 PM
RE: Dynamic Polygon Street Names - by Y_Less - 2020-09-23, 11:53 AM
RE: Dynamic Polygon Street Names - by Freaksken - 2020-09-28, 12:10 PM
RE: Dynamic Polygon Street Names - by Cakey - 2020-09-26, 11:32 AM
RE: Dynamic Polygon Street Names - by Y_Less - 2020-09-26, 12:14 PM
RE: Dynamic Polygon Street Names - by BigETI - 2020-09-26, 01:30 PM
RE: Dynamic Polygon Street Names - by Y_Less - 2020-09-28, 02:08 PM
RE: Dynamic Polygon Street Names - by Torque - 2020-09-29, 08:38 AM

Forum Jump: