![]() |
[FTC]: Top Hat coding problem
ok yet another coding problem for me.
this is my problem: Code:
if (joystick.joy2_TopHat = 0)Code:
if (joy2_TopHat = 0)contacted patrick, but it still doesn't work...he's studying and i don't want to bother him anymore haha |
Re: [FTC]: Top Hat coding problem
Your problem is just an syntax error.
The sign "=" is an assignment operator where the sign "==" is the comparison operator. So you would have to do... if(joystick.joy2_TopHat == 0) { code goes here } |
Re: [FTC]: Top Hat coding problem
thanks it works
|
Re: [FTC]: Top Hat coding problem
Quote:
|
Re: [FTC]: Top Hat coding problem
I have never programmed in C before. I picked up the basic syntax from java and I just needed to learn the functions for this year.
The syntax is amazingly similar. |
Re: [FTC]: Top Hat coding problem
Quote:
|
| All times are GMT -5. The time now is 18:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi