Loading from my SQL and not from players?
#1

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
Reply
#2

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?
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)