Jump to content
  • 0

pomoc Array


Ryso

Dotaz

Mam nasledovny script:

#define MAX_PLAYERS_VAR 100
#define PICKUP_NUMBER 5
#define MAX_LOCATIONS 60
new PickUpLocationForEachPlayer[MAX_PLAYERS_VAR][PICKUP_NUMBER];

new Float:AllPickUpLocations[MAX_LOCATIONS][3] = {
{2689.9155,-1698.7030,9.9737},
{2218.4771,-1164.4073,25.2973},
... // dokopy je ich 60
{2286.9871,-1106.2396,26.4612},
{2505.1658,-1694.7491,13.1132}
}

Ako spravim funkciu, ktora vybere nahodne 5 suradnic z tych 60tich a v nich vytvori pickupy?

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...