Posts: 134
Threads: 23
Joined: Jul 2012
Reputation:
0
I've got a IP file of a player which contains some data, how could I read every data(without the values) and send a SINGLE message which would list every data it red from the file?
Posts: 134
Threads: 23
Joined: Jul 2012
Reputation:
0
Trying my best to be specific. I log every different name to his ip file when the player connects to the server. I want to list those names into one message and send it so people know the names he used in the past
Posts: 1,020
Threads: 38
Joined: May 2011
Reputation:
0
What are you using to save it?
Posts: 134
Threads: 23
Joined: Jul 2012
Reputation:
0
How can I display every name he used in one message? I've seen servers do similar thing, but don't know to do it. I'm using SII
Posts: 134
Threads: 23
Joined: Jul 2012
Reputation:
0
What do you mean read it in one block? Read everything during the first time and store it into string? I've never used reading/writing functions so much before.. Can you please give me a more detailed explanation?
Posts: 582
Threads: 18
Joined: Jul 2010
Reputation:
0
So you have to have a player variable that contains his all used nick names with that registered IP of his. When the player registers, add the first used name (Big_Benny or something...) to the variable. Then, when the player uses another name, just add it to the variable. For that adding part, your'e going to need str library. To detect the position of the last letter of the name and add another name at the end. But don't forget to check the IP, if the IP that is stored in the file is the same as the player's.
EDIT: I don't think that I have to explain the name showing part, yes ?