|
Joined: Oct 2000
Posts: 215
Member
|
Member
Joined: Oct 2000
Posts: 215 |
Ok, I posted this over at ubbhackers as well, but I thought I would here too just to get more people to see it. The problem is that the first if statement always evaluates to true. Everyone comes back with the Administrator title and stars, unless they have a custom title, in which case they come back with the custom title and admin stars. I can't see anything wrong with it. I had this problem before when I was using = instead of eq on a string, but I fixed that this time and still have the same problem. Any help would be appreciated. The stars.file looks like this: ------------------ Member of the new, public-friendly Illuminati. Ask for details!New members get a complimentary one-year subscription to the new Cheese of the Month E-Club!
Ultimate Frisbee is good for you, it improves your symbolic logic skills.
|
|
|
|
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
|
P.I.T.A. / Programmer
Joined: Sep 2000
Posts: 755 |
You still have = instead of eq. That will always come out true because it is an assignment, not an evalutation. slight changes (should work, but not tested to thoughrouly): --mark
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
|
|
|
|
Joined: Oct 2000
Posts: 215
Member
|
Member
Joined: Oct 2000
Posts: 215 |
Sorry about that. I had it as eq in the file I was working on, but not where I was documenting it. I fixed the for reverse thing and changed the if statement at the end to the one-liner you gave me. I just tested it and it works great! Thanks Mark, you are now officially a god, well, as official as I can make it I'll test it for a bit then release the final mod. Thanks again! ------------------ Member of the new, public-friendly Illuminati. Ask for details!New members get a complimentary one-year subscription to the new Cheese of the Month E-Club!
Ultimate Frisbee is good for you, it improves your symbolic logic skills.
|
|
|
|
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
|
P.I.T.A. / Programmer
Joined: Sep 2000
Posts: 755 |
Nah that was nothing god-like. Just some small changes. If I had more time to screw around, i'd have whittled it down even further and cranked some more speed out of it. --mark
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
If mark had played with it, it would be at least thrice the speed, and 1/5 the lines of coding >:0) ------------------ Da Wannabe Cannuck:: Who is Andy?
|
|
|
|
Joined: Oct 2000
Posts: 215
Member
|
Member
Joined: Oct 2000
Posts: 215 |
And probably make coffee for us too ------------------ Member of the new, public-friendly Illuminati. Ask for details!New members get a complimentary one-year subscription to the new Cheese of the Month E-Club!
Ultimate Frisbee is good for you, it improves your symbolic logic skills.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|