14.02.2014, 15:30
Quote:
#1 when saving houses:
format(string3, sizeof(string3), "South-WestRP/Houses/%s.ini", idx) -- while idx is an integer. #2 Same mistake at loading: format(string2, sizeof(string2), "South-WestRP/Houses/%s.ini", idx) idx is an integer, not a string. As for the newlines not appearing, use another text editor. If you feel to rewrite your code, Y_Inis or MySQL provide great flexibility when it comes to data manipulation. Especially SQL queries. Same for sscanf and commands. |