SA-MP Forums Archive
Can someone explain! - 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)
+--- Thread: Can someone explain! (/showthread.php?tid=575089)



Can someone explain! - baba1234 - 23.05.2015

Can someone explain me how does y_ini save work and how can I open it later. I looked at all tutorials but I dont understand I know that u save stuff with INI_WriteInt(File," ",0); but how can i save someones input like if someone inputs number 11 in dialog how can I save it? Or lets say there is register and login system and they need to type their age and gender how can I save that.


Re: Can someone explain! - SoFahim - 24.05.2015

Hmm.

Just like register system. create a INI ssytem like login dialog. to age thats it


Re: Can someone explain! - Yashas - 24.05.2015

https://sampforum.blast.hk/showthread.php?tid=574754 - Do not use INI to save/load player stats for various reasons which are mentioned in that tutorial.

pawn Код:
new INI:ini = INI_Open("TST1.txt");
INI_SetTag(ini, "XXXX");
INI_WriteString(ini,"k","1234");
INI_WriteString(ini,"k2","1234");
INI_WriteString(ini,"k3","1234");
INI_WriteString(ini,"k4","1234");
INI_WriteString(ini,"k5","1234");
INI_SetTag(ini, "XXXX2");
INI_WriteString(ini,"k","1234");
INI_WriteString(ini,"k2","1234");
INI_WriteString(ini,"k3","1234");
INI_WriteString(ini,"k4","1234");
INI_WriteString(ini,"k5","1234");
INI_Close(ini);
https://sampforum.blast.hk/showthread.php?tid=570912

https://sampforum.blast.hk/showthread.php?tid=570957