Quote: "What is the f?"
In c/c++ you say with the "f" character at the end of any floating point number that you don't need full precision of the representation. The numbers 1.0 and 1.0f are thus of different types (the first one is 'double' the second one is 'float' - less precise).
Quote: "What is the best way to add floats easily? I'm trying to average something but it never works...:"
'float' is a standard variable type. With a type name you define a variable, so
defines a variable va of type float. You can not have two variables of the same name, so you can't do this:
actually, you don't have to define the variable again since it is already defined, so you can assign a new value to it:
float av;
av = av + dbObjectSizeZ(1);
av = av/3;
Quote: "How do you get it to stay there without having to loop everything else again?"
Not possible in GDK as far as I know.
Quote: "What is the best way to get the camera position (all XYZ in the same string) and put it in dbText on the screen?"
This should work:
dbPrintC("Position: [");
dbPrintC(dbStr(dbCameraPositionX()));
dbPrintC(", ");
dbPrintC(dbStr(dbCameraPositionY()));
dbPrintC(", ");
dbPrintC(dbStr(dbCameraPositionZ()));
dbPrint("]");
dbPrintC function should print text without "jumping" on next line.