Welcome to the Builder Academy

Question How to sort lines

More
10 Jul 2016 21:13 #6106 by Liko
How to sort lines was created by Liko
Hello,
I am wanting to know how to sort lines and other things.
Code:
if(buf%4) { send_to_char(ch, "\r\n"); }

Example:

Fireball, Firebolt, Fire, Ice(right here it would insert a \r\n)
Iceball, Icebolt, thunder, cure

So every four spells it would \r\n. I don't know if the above code is even close.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
10 Jul 2016 22:53 #6107 by thomas
Replied by thomas on topic How to sort lines
It depends. If you are listing out items, try column_list github.com/tbamud/tbamud/blob/2f12752373...8a4/src/utils.c#L984

Please Log in or Create an account to join the conversation.

Time to create page: 0.165 seconds