25.07.2011, 11:01
But i want to save the color as a string, and read it as a string to use it as a color, how does it work?
I save so:
I save so:
Код:
CreateDynamicObject(1229, newobjectPos[0], newobjectPos[1], oPos, 0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); CreateDynamic3DTextLabel(inputtext,COLOR_RED,newobjectPos[0], newobjectPos[1], newobjectPos[2],30.0,0,0,1,0,0,-1,100.0); format(schildString, sizeof(schildString), "%s\t|%s\t|%f\t|%f\t|%f\r\n",COLOR_RED,inputtext,newobjectPos[0], newobjectPos[1], newobjectPos[2]); schilderDatei = fopen(SCHILDER_FILE, io_append); fwrite(schilderDatei, schildString); fclose(schilderDatei);