House Save/Load System
#3

Quote:
Originally Posted by CuervO
Посмотреть сообщение
#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.
Could you please give me an example of how I should use idx? Also I know notepad doesn't show the lines correctly I just ment it wasn't saving the coordinates or anything.. Is that because of how idx is used on saving/loading like you said?
Reply


Messages In This Thread
House Save/Load System - by Phil_Cutcliffe - 14.02.2014, 15:21
Re: House Save/Load System - by CuervO - 14.02.2014, 15:26
Re: House Save/Load System - by Phil_Cutcliffe - 14.02.2014, 15:30
Re: House Save/Load System - by CuervO - 14.02.2014, 15:36
Re: House Save/Load System - by Phil_Cutcliffe - 14.02.2014, 15:41
Re: House Save/Load System - by CuervO - 14.02.2014, 15:51
Re: House Save/Load System - by Phil_Cutcliffe - 14.02.2014, 15:55
Re: House Save/Load System - by CuervO - 14.02.2014, 16:00
Re: House Save/Load System - by Phil_Cutcliffe - 14.02.2014, 16:35
Re: House Save/Load System - by CuervO - 14.02.2014, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)