A way to save a very long string
#1

I'm working on some PHP API that connects to the server with RCON, the server retrieves all online players' names and sends it back to the website (in-case the playercount is bigger than 100). I didn't start making it yet, though I thought I'll be asking before, just to make sure saving a long string is possible (which may at worst case be 10,499 bytes - which is in case there are 500 players and all have a 20 characters long name). Any thoughts?
Reply
#2

You can use packed string so it will be only 2,500 bytes ( (500*20) / 4 )
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
You can use packed string so it will be only 2,500 bytes ( (500*20) / 4 )
Nah, I used sockets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)