Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

light theme - Constant SQ_TIMEOUT already defined in /bans/index.php on line 133 #10

Open
Bryantdl7 opened this issue Feb 24, 2023 · 1 comment
Labels

Comments

@Bryantdl7
Copy link

Warning: Constant SQ_TIMEOUT already defined in /bans/index.php on line 133

Warning: Constant SQ_ENGINE already defined in /bans/index.php on line 134

@Bryantdl7
Copy link
Author

Bryantdl7 commented Feb 24, 2023

Here's how I fixed it.

Commented out 133 and 134 as they were redundantly called.

defined them as variables

$sqTimeOut = 3;
$sqEngine = SourceQuery::SOURCE;

changed $serverQuery as follows

//old way that is broken
//$ServerQuery->Connect( $ip, $port, SQ_TIMEOUT, SQ_ENGINE );

//new way that works
$ServerQuery->Connect( $ip, $port, $sqTimeOut, $sqEngine );

@Bryantdl7 Bryantdl7 changed the title light theme error light theme - Constant SQ_TIMEOUT already defined in /bans/index.php on line 133 Feb 24, 2023
@1day2die 1day2die added the PHP label Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants