Still doesn't quite work . . . no more compiling errors at least!
This is my code. Sorry for a change in variable names, but I'm doing almost the same thing for two separate projects . . .
rprintf("car ID: %d\r\n",car_id);
if (temp != -1)//check for data
rprintf("car ID transmitted: %d\r\n",car_id);
It detects whether data is sent correctly or not, however, the data it recieves is incorrect.
For example, suppose I transmit "345as" to it, it returns:
car ID: 51
car ID transmitted: 51