opinion
#1

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.
Reply
#2

I'd use an array instead.
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)