Hello All,
I hope somebody has an idea to explain me what's the reason behind the error I got.. Here is my code snippet:
Assumes that my handle_error function is already implemented as well..
typedef struct {
signed char steering;
} my_struct;
my_struct data;
void get_brake_data()
{
while(1)
{
handle_error(get_brakedata( &data ));
wait(1);
}
}
function get_steering()
{
return data.steering;
}
But I just got "Syntax error:Can't convert CONV:FIXED::.
< return steering;
>
" error.. why?
get_brakedata function is from my plug-in dll which has a prototype of
get_brakedata( MyData* data )
It'll be successful if I'll just let a variable receive the value from the function like the code below. I can receive the exact value that I want but I just need to implement a getter function to minimize errors, since I'll be sending this value to other game applications. I just want them to use get_steering() function to retrieve the value and not by just calling a single variable "steering_value" coz they can be able to assign a value on it..
var steering_value;
void get_brake_data()
{
while(1)
{
handle_error(get_brakedata( &data ));
steering_value = data.steering
wait(1);
}
}
Please advise..