It would be far more helpful if you also posted a screenie of the error. here you go. as said before this only happens for one variable the one marked between a double //********* comment line changing the line with commented out one resolves the problem but doesnt make sense since it was already declared a float. thanks.