
-----------------------------------
Tuxedo
Sun Jan 02, 2005 2:09 pm

Whatdotcolor on OOT 3.1.1
-----------------------------------
see below for code


^^^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~

-----------------------------------
Tuxedo
Sun Jan 02, 2005 2:11 pm


-----------------------------------
all those  8)  ar supposed to be 8 and a )  8 )

-----------------------------------
Tony
Sun Jan 02, 2005 3:43 pm


-----------------------------------
use 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)..

-----------------------------------
Neo
Sun Jan 02, 2005 3:47 pm


-----------------------------------
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.

-----------------------------------
Tuxedo
Sun Jan 02, 2005 4:36 pm


-----------------------------------
I don't undertsand what you are saying?

Can you give an example..I am really bad at this... :oops:

-----------------------------------
Tony
Sun Jan 02, 2005 4:47 pm


-----------------------------------
your hit() procedure is worthless... just get rid of it :wink:

-----------------------------------
Tuxedo
Sun Jan 02, 2005 4:54 pm


-----------------------------------
Then how do I do my whatdotcolor....please help!

 :cry: 


~tuxedo~



***Deleted due to school

-----------------------------------
Tuxedo
Sun Jan 02, 2005 8:43 pm


-----------------------------------
O sorry Im a major newb and did not understand what he meant by [code]...sorry[code]    [code] :oops:

-----------------------------------
Cervantes
Sun Jan 02, 2005 9:06 pm


-----------------------------------
 	
I added more parameters...I think I get this error missing parameters in call subprogram 'hit'

Take a look back here:
procedure hit (x, y, x1, y1:int)
You've got four parameters for the procedure "hit".  Then, you call it like so:
hit
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. :)

-----------------------------------
Tony
Sun Jan 02, 2005 9:48 pm


-----------------------------------
Tutorials are amazing for finding information about [url=http://www.compsci.ca/v2/viewtopic.php?t=407]procedures and everything else about Turing :wink:

-----------------------------------
Tuxedo
Sun Jan 02, 2005 11:19 pm


-----------------------------------
I started a new Game...I sorta ripped soem of the code  :cry: 


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

-----------------------------------
Tuxedo
Mon Jan 03, 2005 6:48 pm


-----------------------------------
This thread can be deleted as it ahs no helpful information for anyone...
