15.06.2012, 13:12
Hi, I have this so far:
I want to count how many locations there are in the Location part of the stops, for example in Route Number 3, there are
which totals to 10 locations, I've tried using this:
to find out how many locations there are, but it comes back with the first value of the location (138 or 139)
edit: routeid is either 1, 2 or 3 (random)
pawn Код:
enum TGarbageStops
{
RouteNumber,
TrashDepot,
Score,
Locations[10] // Maximum of 10 different trash pickups
}
new AGarbageCollectorRoutes[][TGarbageStops] =
{
{1, 140, 1, {138, 139, 138, 139}},
{2, 140, 2, {139, 138, 139, 138, 139, 138, 139}},
{3, 140, 3, {138, 139, 138, 139, 138, 139, 138, 139, 138, 139}}
};
Код:
138, 139, 138, 139, 138, 139, 138, 139, 138, 139
pawn Код:
TotalToPickup = AGarbageCollectorRoutes[routeid][Locations];
edit: routeid is either 1, 2 or 3 (random)


