SA-MP Forums Archive
Changeing saving system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Changeing saving system (/showthread.php?tid=244456)



Changeing saving system - Jimbo01 - 27.03.2011

I'm changeing my saving system to dini

Old looks like this:
Код:
			fread(file, valtmp);PlayerInfo[playerid][pAmmo6] = strval(valtmp);
			fread(file, valtmp);PlayerInfo[playerid][pSHealth] = floatstr(valtmp);
New will look like this ?
Код:
			PlayerInfo[playerid][pAmmo6]  = dini_Int(string2,"Ammo6");			
                                      PlayerInfo[playerid][pSHealth] = floatstr(valtmp);
is that " PlayerInfo[playerid][pSHealth] = floatstr(valtmp); " right ? must i just let it or change it to something else ?


Re: Changeing saving system - MadeMan - 27.03.2011

This is loading system.

Show your saving system.


Re: Changeing saving system - Jimbo01 - 27.03.2011

working on the loading system at the moment wanted to now if im on the right way ?

so its right ?


Re: Changeing saving system - MadeMan - 27.03.2011

It all depends how you write the info to the file.


Re: Changeing saving system - Mike Garber - 27.03.2011

No... No... Why exactly are you switching to dini if It's working with what you have?
dini is the slowest system you can find. Use y_ini or another cache ini system.