Author |
Message |
Tuxedo
|
Posted: Sun Jan 02, 2005 2:09 pm Post subject: Whatdotcolor on OOT 3.1.1 |
|
|
[mod:ad5b31b5bd="dodge tomahawk"]see below for code[/mod:ad5b31b5bd]
^^^That is what I have for my program...sucks...
I am trying to get whatdotcolor to work but when I make a procedure "hit" and put it in my main program it does not allow it. Says it has missing parameters. I do not know what I am doing wrong. I still need to put in the thing for it to hit and do not know where in the main program to put that... I really suck at Turing and am doing this for school...I don't know if I amd going at this in the srong way either I am doing it the way I was advized by my teacher
Thanks
~Tuxedo~ |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tuxedo
|
Posted: Sun Jan 02, 2005 2:11 pm Post subject: (No subject) |
|
|
all those 8) ar supposed to be 8 and a ) 8 ) |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Sun Jan 02, 2005 3:43 pm Post subject: (No subject) |
|
|
use [ code ] tags for.. well code
and you're not actually using hit procedure in your code, so I can't help you there.. My guess is that.. well - you forgot to include all of the parameters. Hit() has 4 (x,y,x1,y1).. |
|
|
|
|
![](images/spacer.gif) |
Neo
![](http://compsci.ca/v3/uploads/user_avatars/441131374462fea7633fd3.gif)
|
Posted: Sun Jan 02, 2005 3:47 pm Post subject: (No subject) |
|
|
I dont see why you would need 4 parameters in a procedure with only whatdotcolour. Change it to 2 parameters or 3 if you want to specifiy colour. |
|
|
|
|
![](images/spacer.gif) |
Tuxedo
|
Posted: Sun Jan 02, 2005 4:36 pm Post subject: (No subject) |
|
|
I don't undertsand what you are saying?
Can you give an example..I am really bad at this... ![Embarassed Embarassed](http://compsci.ca/v3/images/smiles/icon_redface.gif) |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Sun Jan 02, 2005 4:47 pm Post subject: (No subject) |
|
|
your hit() procedure is worthless... just get rid of it ![Wink Wink](http://compsci.ca/v3/images/smiles/icon_wink.gif) |
|
|
|
|
![](images/spacer.gif) |
Tuxedo
|
Posted: Sun Jan 02, 2005 4:54 pm Post subject: (No subject) |
|
|
Then how do I do my whatdotcolor....please help!
~tuxedo~
***Deleted due to school |
|
|
|
|
![](images/spacer.gif) |
Tuxedo
|
Posted: Sun Jan 02, 2005 8:43 pm Post subject: (No subject) |
|
|
O sorry Im a major newb and did not understand what he meant by [code]...sorry[code] [code] ![Embarassed Embarassed](http://compsci.ca/v3/images/smiles/icon_redface.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Sun Jan 02, 2005 9:06 pm Post subject: (No subject) |
|
|
tuxedo wrote:
I added more parameters...I think I get this error missing parameters in call subprogram 'hit'
Take a look back here:
code: | procedure hit (x, y, x1, y1:int) |
You've got four parameters for the procedure "hit". Then, you call it like so:
That won't work, because you aren't passing any information into the procedure (by method of the parameters).
Follow?
If not, make sure you've read through and underrstand what the Turing Reference (press F10) has to say about procedures. Once that's complete, ask away. ![Smile Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Sun Jan 02, 2005 9:48 pm Post subject: (No subject) |
|
|
Tutorials are amazing for finding information about procedures and everything else about Turing ![Wink Wink](http://compsci.ca/v3/images/smiles/icon_wink.gif) |
|
|
|
|
![](images/spacer.gif) |
Tuxedo
|
Posted: Sun Jan 02, 2005 11:19 pm Post subject: (No subject) |
|
|
I started a new Game...I sorta ripped soem of the code
However I tried to change alot of things and took out things that I don't understand even though they work...
Im stupid...and am sorry for being so stupid as to rip someones code I apologize |
|
|
|
|
![](images/spacer.gif) |
Tuxedo
|
Posted: Mon Jan 03, 2005 6:48 pm Post subject: (No subject) |
|
|
This thread can be deleted as it ahs no helpful information for anyone... |
|
|
|
|
![](images/spacer.gif) |
|