SA-MP Forums Archive
Loading from my SQL and not from players? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Loading from my SQL and not from players? (/showthread.php?tid=503049)



Loading from my SQL and not from players? - Dokins - 27.03.2014

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


Re: Loading from my SQL and not from players? - Misiur - 27.03.2014

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?


Re: Loading from my SQL and not from players? - Dokins - 27.03.2014

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.