SA-MP Forums Archive
[HELP] INI 1 file - Write more names - 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: [HELP] INI 1 file - Write more names (/showthread.php?tid=635435)



[HELP] INI 1 file - Write more names - ThomasEvil - 07.06.2017

Hello,
i check players name and players ip. If player change his name, i want to write the name into a file.
Well it's easy. But what if he change name again? I want write this changed name too so i have 2 names in one file.
But now, second name rewrite the first one

Код:
new INI:file = INI_Open(IP(playerid));
INI_WriteString(file, "Alias", GetName(playerid));
INI_Close(file);
So i save player name
Код:
INI_WriteString(file, "Alias", GetName(playerid));
If he change name, "Alias" is rewritten...
I need to save up to 50 "Alias" in one file. So if he change name 50x i want see all 50 names in one file for example..


Re: [HELP] INI 1 file - Write more names - OneDay - 07.06.2017

INI is bad for that, just use a file.


Re: [HELP] INI 1 file - Write more names - ThomasEvil - 07.06.2017

I like INI.


Re: [HELP] INI 1 file - Write more names - ThomasEvil - 08.06.2017

Actually i solved it and i can save those names into one file.
But now i can't read it becasue i'am supernoob

When i save string

Код:
INI_WriteString(file, "Alias", GetName(playerid));
HOW CAN I READ Alias AND SEND IT TO CLIENT please?


Re: [HELP] INI 1 file - Write more names - ThomasEvil - 09.06.2017

BUMP