Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
new PlayerArrests[MAX_PLAYERS][Par];
This should be for loading from MySQL and not for max_players.
I'm not sure how I can define the max_players as it's only retrieving from MySQL and not players
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
I'm not sure what do you have in mind. MAX_PLAYERS is a number, and this line creates an array which can accommodate up to MAX_PLAYERS arrays enumerated via Par enumerator. What do you want to achieve?
Posts: 1,648
Threads: 482
Joined: Jun 2010
Effectively I have a command that gets a players sqlid from the accounts database, it then saves it into the arrest record database, the other command then checks if a players been arrested via MySQL and then shows all the records. As it's saved from the database I'm not sure what to put instead of MAX_PLAYERS.