25.05.2017, 13:18
Quote:
I don't think that is the point here - he probably meant that after reading a Username, the only output is that symbol.
Random signs usually come up when writing or reading strings the wrong way. Or when trying to format a number into a string (eg when using %s in format, but passing a number/character). I guess other values get read correctly the same way? Because that code as such seems correct (maybe a bit inefficient to use format there). The only question I have is if "housestring" really contains the filename, or is it a buffer for something else? |
Quote:
new housestring[64]; format(housestring, sizeof(housestring), "/Houses/%d.dini.save", houseid); if(dini_Exists(housestring)) { //... } |