Update API Samp
#1

Hi, dear developers Sa-MP.
Could you improve the mechanism?
For example: Make a pull-over 100 people online.
Or tell me how you can get more than 100 people on the server available online.
Reply
#2

Go to your server.cfg located in your server map.
Open it with a text editor and change the players number to 100.
Reply
#3

He probably wants to retrieve info of players when there are more than 100. If you want to do that, you will need server to send you that information.

We could probably get an update that would allow us to whitelist IPs that would be able to get info when more than 100 players online.
Reply
#4

Removing the limitation of "not returning more than 100 players online name and score" over the query mechanism will create a performance issue.

Once again, like I replied to your last topic, if the server is yours, script a way to get every player information, save it in a database or whatever, and show it over your website.
Easy, fast, and secure.
Reply
#5

Quote:
Originally Posted by Kikito
Посмотреть сообщение
Removing the limitation of "not returning more than 100 players online name and score" over the query mechanism will create a performance issue.

Once again, like I replied to your last topic, if the server is yours, script a way to get every player information, save it in a database or whatever, and show it over your website.
Easy, fast, and secure.
I'm trying to get players from foreign server, not his.
Reply
#6

Then, don't even try.
Reply
#7

Quote:
Originally Posted by Kikito
Посмотреть сообщение
Then, don't even try.
Why? Maybe, developers help.
Reply
#8

To do so would raise issues with hitting packet MTUs and having to fragment the data responses, which is not something that the SA:MP query interface currently supports. To implement the suggestion would require substantially more effort than it might seem.
Reply
#9

Quote:
Originally Posted by Clivlend
Посмотреть сообщение
Why? Maybe, developers help.
SA-MP Developers aren't(Or at least, they shouldn't) increase the number of max players to retrieve information from.
It will result in connection lag, packet loss, and other problems(depending on the target machine upload connection speed).

35KB per request(example, for 1000 players), 50 times per second, will result in arround 1.7MB/s transfer.
If you're doing something like a website with every sa-mp server, with the current players connected, name and score, and so on, there will be way more than 50 connections per second.

Now, imagine the uplink used to handle all of these requests per second, in the target machine.
If the target machine has just 100Mbit/s up/down speed,with the players I gave the example above, it would start lagging with just 50 connections per second(well, it would lag with just ~350 players connected, I think, but that's not the cause here, I'm just giving a example)

You can't just think "I want to retrieve every player information", you need to think as well in the target machine, network connection, and other factors.
Which you're not thinking, and "playing" with.

So, leave the idea of "increasing the query limit", it isn't going to work well, as well, it will be abused.

If I wrote anything wrong above, please let me know, I'm not a network specialist.
Reply
#10

They should add a variable, let the owner decide what he wants to do depending on the hardware he has
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)