Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Whatdotcolor on OOT 3.1.1
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tuxedo




PostPosted: 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~
Sponsor
Sponsor
Sponsor
sponsor
Tuxedo




PostPosted: Sun Jan 02, 2005 2:11 pm   Post subject: (No subject)

all those 8) ar supposed to be 8 and a ) 8 )
Tony




PostPosted: Sun Jan 02, 2005 3:43 pm   Post subject: (No subject)

use [ code ] tags for.. well code Laughing

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




PostPosted: 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.
Tuxedo




PostPosted: 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
Tony




PostPosted: Sun Jan 02, 2005 4:47 pm   Post subject: (No subject)

your hit() procedure is worthless... just get rid of it Wink
Tuxedo




PostPosted: Sun Jan 02, 2005 4:54 pm   Post subject: (No subject)

Then how do I do my whatdotcolor....please help!

Crying or Very sad


~tuxedo~



***Deleted due to school
Tuxedo




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: 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:
code:
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. Smile
Tony




PostPosted: 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
Tuxedo




PostPosted: Sun Jan 02, 2005 11:19 pm   Post subject: (No subject)

I started a new Game...I sorta ripped soem of the code Crying or Very sad


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




PostPosted: Mon Jan 03, 2005 6:48 pm   Post subject: (No subject)

This thread can be deleted as it ahs no helpful information for anyone...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: