Reading all lines from a file and showing them using (dialog or client message)
#3

Quote:
Originally Posted by Stinged
View Post
I've been searching for hours and I couldn't find a topic that helped me.
I'm sure someone already answered this, but I can't find it.

So I'm trying to make a file which logs all the warns a player got.
Everything was working well, until I wanted to load them and show them using dialogs or client messages.


How can I load each line with their \n and use them in a msgbox dialog?
You're trying to do something that isn't efficient at all. Once you have a mass file and everytime you attempt to list the results the server will lag (for everyone), imagine a player that's spamming the command or a player that requests results at a fast speed, the server would be in lag mode. It's not worth it.

Anyways, the code that Jefff posted will get the job done.
Reply


Messages In This Thread
Reading all lines from a file and showing them using (dialog or client message) - by Stinged - 03.08.2014, 21:20
Re: Reading all lines from a file and showing them using (dialog or client message) - by Jefff - 03.08.2014, 21:31
Re: Reading all lines from a file and showing them using (dialog or client message) - by SickAttack - 03.08.2014, 21:37
Re: Reading all lines from a file and showing them using (dialog or client message) - by Stinged - 03.08.2014, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)