Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,388
628
PabloL3189
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » String Manipulation
Forum Rules | Mark all | Recent Posts

String Manipulation
< Newer Topic :: Older Topic > See messege for description :P

Pages:<< prev 1 next >>
Post is unread #1 Feb 1, 2003, 10:54 pm
Go to the top of the page
Go to the bottom of the page

Cray
Member
GroupMembers
Posts9
JoinedDec 20, 2002

Alright, lets just be blunt shall we? B)

I want the lines to change depending on what line number it is. Sure that doesn't seem to make much sense, so lets use an example:

Line One Will be blue.
Line Two will be purple.
Line Three will be blue again.
Line Four will be purple again.


Mainly its for my wizlist, which scrolls down. Such as:

[1007] Cray Taypeon@hotmail.com


So basically i'd be in blue, the person under would be in purple, and repeat.
Sorry for the detailness :P Just wanted to make sure I didn't get ye old "Can you explain further what you actually want done?" Or yadda yadda. Remember, just for the colours, i already have my wizlist autoformat how i want it, cept for the colour based on line number.. :angry:

Thanks in advance to Anyone who can help :lol:
       
Post is unread #2 Feb 2, 2003, 2:41 am
Go to the top of the page
Go to the bottom of the page

Cray
Member
GroupMembers
Posts9
JoinedDec 20, 2002

Well, After 2 hours of tinkering, Yay! Declared an int for count, increased the count everytime it went through the loop, and just gave it an:

 if ( count%2 == 1 )
 {
    line1 blue (Yeah yeah, you get what i mean though :P)
 }
 else
 {
    line2 purple( And again )
 }


I feel like a fool now :blink: Oh well, how easy was that ^_^
       
Pages:<< prev 1 next >>