A way to save a very long string - 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: A way to save a very long string (
/showthread.php?tid=585818)
A way to save a very long string -
arad55 - 16.08.2015
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?
Re: A way to save a very long string -
Jefff - 17.08.2015
You can use packed string so it will be only 2,500 bytes ( (500*20) / 4 )
Re: A way to save a very long string -
arad55 - 17.08.2015
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.