Previous Thread
Next Thread
Print Thread
Rate Thread
#101592 11/01/2000 11:50 PM
Joined: Oct 2000
Posts: 215
Member
Member
Offline
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.

Code
code:
The stars.file looks like this:
Code
code:

------------------
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.
Sponsored Links
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
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):

Code
code:

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Oct 2000
Posts: 215
Member
Member
Offline
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 [Linked Image] 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
Offline
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. [Linked Image]

--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
Offline
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?

Sponsored Links
Joined: Oct 2000
Posts: 215
Member
Member
Offline
Joined: Oct 2000
Posts: 215
And probably make coffee for us too [Linked Image]

------------------
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.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)