Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
error
From Quake Wiki
void error(string message)
Usage
Throws an abort exception in the VM and halts all execution of the game. This should be used for any game-breaking errors that cannot be recovered from.
Parameters
- message
- The message to display in the console.
Example
// This advanced server system uses a global to determine if the game state is valid // If the state is invalid, it forcefully exits the game void UpdateGameState() { if (gameState == GS_INVALID) error("Game state encountered a fatal error\n"); // ... }