Writing INI Files whitout Player Connection!
#1

INI Files
Hey guys, i want to know how i can write information in INI Files, even if the players arent Connect, because is useful to give money some players .

I'm trying to make a loop but doesnt work, can u help me? please

PD: I use Y_INI


Thanks you very much.
Reply
#2

Well I assume you save the INI account files in an "Accounts" folder of some kind. If you've configured everything properly it should create an .ini file for every user. In that file you can edit the saved variables (i.e. Money).
Reply
#3

Quote:
Originally Posted by DrDoom151
Посмотреть сообщение
Well I assume you save the INI account files in an "Accounts" folder of some kind. If you've configured everything properly it should create an .ini file for every user. In that file you can edit the saved variables (i.e. Money).
Yes? So...? U should read better the post. I want to Write Information in INI Files, even if the players arent Connected.

Example: When a players disconnect, some information is saved (Wrote). I wanna the same thing for a CMD :P, but write the information even if the player or "The players" arent connected.

Thanks for trying to help BTW
Reply
#4

From what I understood from your post, that's what you meant.

I have little experience with .ini, but it should be possible to use the string you use to save the initial ini file (which you use to register etc.) and call that back via a command or dialog. For example if you'd enter: "Player101" into a dialog, it would find "/Accounts/Player101.ini". Then another dialog to input the variable name (i.e. skin) and another dialog to input the value (i.e. 104). It would when create Skin=104. Of course this could all be done in a single command seperated by spaces.

I hope this (partially) helps you.
Reply
#5

I cant do that, because my server is running already, so old players cant be counted. So arent other solutions?

Thanks, finally i think i understood.
Reply
#6

Oh I thought you were talking about adding something for an individual, but from what I understand now you want it for all the players? I'm sorry, I wouldn't be able to help you with that since I have little knowledge of ini, but I recommend you make the move to MySQL.
Reply
#7

Yeah i was thinkin in that also. Thanks for ur help Buddy!
Reply
#8

No problem! Sorry I couldn't help you much further with the .ini stuff.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)