SA-MP Forums Archive
opinion - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: opinion (/showthread.php?tid=608960)



opinion - mcreed - 07.06.2016

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.


Re: opinion - SickAttack - 07.06.2016

I'd use an array instead.


Re: opinion - m3shys - 07.06.2016

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


Re: opinion - SickAttack - 07.06.2016

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