02.05.2016, 21:00
Quote:
Damn, that I can't exlain the second one.
I'll try to make a demonstration program maybe. Or I'll try to exlain again even closer. 1. I open the C++ program that I created in C++ 2. I write something like SetDynamicObjectMaterial(MiniGr, 0, 16202, "des_cen", "sandgrnd128"); Or anything. 3. The program will add a character in front of it like: Ground = SetDynamicObjectMaterial(MiniGr, 0, 16202, "des_cen", "sandgrnd128"); The program now added "Ground =" For me. But the problem is that I don't know how to do it. With other words: You can write anything and it will just say something in front of it like add a character in front of it. But in this case I need to add to paste like 5 ones. |
Код:
fprintf(fout, "var = \"%s\"", line); // var represents the prefix you want to add to the string.