Good, I wanted to know your opinion on the following idea:

I'm doing a new game mode with mysql, and had the idea that typical error messages such as 'The Player is not connected.' or 'Are you listening the song [Song name]', these messages are loaded through the bd, it is that messages are stored in a table in the database, and when you start the server this get them from the table.

This idea is the reason to facilitate the sending of messages in several languages, not be writing much code.

Sorry bad english.

I'd use an array instead.

I'd also use an array, just because they are static messages.
You won't reduce your code by much to have much impact.

Dynamically, the only difficulty I see is creating a function that sends the message to each player while respecting the language they chose.

Forum Jump:

Users browsing this thread: 1 Guest(s)