Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / What is wrong?

Author
Message
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 23rd Jan 2005 14:31
I have


and when I run the program, it says that it can't close the nest. what the f**k does that mean? is it because this is called from another subroutine? please help soon.

www.war3forums.net
_ RealUnReal _
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Dudley, UK
Posted: 23rd Jan 2005 23:35
Reword you rocedure like this,

Teh Go0rfmeister
21
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 24th Jan 2005 02:15
you're isusing the "and" command.

use and to check if 2 things are something, not to do multiple things:

if something=1 and otherthing$="this thing"=1 then do_something() is correct

but not:

if something=1 then do_something() and something_else()

fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 24th Jan 2005 09:09
Thanks a lot.

www.war3forums.net
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 24th Jan 2005 09:11
Hey, I tried it and I got the same error, with it highlighting "return" and saying that it "can not close nest at line 71"

www.war3forums.net
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 24th Jan 2005 12:05
Actually, I fixed the error. But now it won't do random calculations! whenever i test it, always the same pattern comes out. how do i solve/fix/stop this?

www.war3forums.net
wmf
19
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 24th Jan 2005 20:44

put this at the beginning of your code
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 25th Jan 2005 06:51
no, I want random numbers in a certain range, not a number like "5123584850" But would that still work?

www.war3forums.net
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 3rd Feb 2005 11:40
Could someone please help me?

www.war3forums.net
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 3rd Feb 2005 12:20 Edited at: 3rd Feb 2005 12:21
If you want 10 random numbers from say 10 to 1000 and you want it to be a random sequence each time you would do somehing like this.



Neil19533
21
Years of Service
User Offline
Joined: 30th Aug 2003
Location: England
Posted: 3rd Feb 2005 12:44 Edited at: 3rd Feb 2005 12:46
EDITED

Any spelling mistakes are totally In tensional.

Login to post a reply

Server time is: 2024-09-23 10:18:52
Your offset time is: 2024-09-23 10:18:52