Menu

#1 Help Message.

open-fixed
nobody
None
5
2010-01-17
2010-01-16
Anonymous
No

I suppose this is not a patch per se since I dont have a diff file, but the help message could be handled prettier by using an array of CStrings.

so instead of the following:
const char *PLAYER_HELP_1 = "&7This is a list of custom features and commands ";
const char *PLAYER_HELP_2 = "/me [message] &f- Simple emote command ";

we would have this:
char **PLAYER_HELP[10][MAX_CHAR_PER_LINE];
char *PLAYER_HELP[1] = "&7This is a list of custom features and commands ";
char *PLAYER_HELP[2] = "/me [message] &f- Simple emote command ";

you can then use a loop to run through the help messages. This also opens up a command to allow one to display the help messages to everyone, or to only display lines 3-7. Adds much more flexibility and removes some ugly code.

-Dandistine

Discussion

  • v LK

    v LK - 2010-01-17

    Implemented :)
    More feedback like this is much appreciated :D

     
  • v LK

    v LK - 2010-01-17
    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.