pawn-lang / sa-mp-fixes

Includes and plugins to fix various issues in the SA:MP server that can be fixed externally, leaving the devs time for other things.
135 stars 57 forks source link

Add check for MAX_PLAYERS and console variable maxplayers #131

Closed WoutProvost closed 2 years ago

WoutProvost commented 3 years ago

These should match. The check should throw an error if they differ.

One of these natives can be used:

GetConsoleVarAsInt("maxplayers");
GetMaxPlayers();
Mergevos commented 2 years ago

@WoutProvost wasn't this fixed in 8fb5ad1280c1003bda89df4d9072204b738ad051 and in cd0834187b35ab60ae24c06539687cbb7348495a?

Y-Less commented 2 years ago

Yes it was, thanks.