Constant for max player number

This commit is contained in:
foin137
2020-12-20 14:17:15 +01:00
parent 66d4663e52
commit 28697e7174
2 changed files with 2 additions and 1 deletions

View File

@@ -1645,7 +1645,7 @@ p#liste {
{
//Name gültig
//Finde eine freie ID
for ($i = 1; $i <= 50; $i++)
for ($i = 1; $i <= _MAXPLAYERS; $i++)
{
$res = $mysqli->Query("SELECT * FROM $spielID"."_spieler WHERE id = $i");
//echo "SELECT * FROM $spielID"."_spieler WHERE id = $i";

View File

@@ -3,6 +3,7 @@
define("_VERSION","v1.2.4");
define("_LISTMAXRELOADTIME",3000);
define("_WAITINGFOROTHERSTIME",30); //Innerhalb dieser Sekunden bleibt verborgen, auf wen noch gewartet wird.
define("_MAXPLAYERS",50);
//Phasen
define ("PHASESETUP",0);