SA-MP Forums Archive
YINI reading strings one by one. - 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: YINI reading strings one by one. (/showthread.php?tid=522296)



YINI reading strings one by one. - DiNorscio - 26.06.2014

If I have file like this:
PHP код:
LINE1
LINE2
LINE3
LINE4
LINE5 
How to code to load for example LINE 2 to format that as STRING 1, and I will put that in textdraw, after that to load for example now LINE 5 to format like STRING 2 and also put in another textdraw.


It is possible?


Re: YINI reading strings one by one. - DiNorscio - 27.06.2014

Anybody?


Re: YINI reading strings one by one. - BroZeus - 27.06.2014

why dont you use INI_String and INI_WriteString functions?


Re: YINI reading strings one by one. - DiNorscio - 27.06.2014

Explain me how to do like that? Example?


Re: YINI reading strings one by one. - BroZeus - 27.06.2014

https://sampforum.blast.hk/showthread.php?tid=175565
look for it in this
you can use ****** to see various login/register system using it


Re: YINI reading strings one by one. - DiNorscio - 27.06.2014

Can you please show me some example how to do, I really dont understand ***** text.

I want to create file with string in it, and after to load that string in SendClientMessage, format and everything else.

PHP код:
CMD:setstring(playeridparams[])
{
    new 
INI:ini INI_Open("haha.ini");
    
INI_WriteString(ini"1:""SOMETHING");
    
INI_Close(ini);
}
CMD:teststring(playeridparams[])
{
    new 
INI:ini INI_Open("haha.ini");
    
INI_String("1:"test50);
    
INI_Load("haha.ini");
    
// I dont know how to format string which I created and put it in SendClientMessage
    
return 0;