Web API and Players
#1

Hi!

I'm using some PHP web api. But samp not showing player names over 100 players. You have any idea for posible? with server side changes or cfg commands ?
Reply
#2

It's a limitation which will not be reporting about the player's details if the player count goes beyond 100. However, it's possible if you get it server sided too. Under OnPlayerConnect and OnPlayerDisconnect, send data to the webpage in regarding to update the player list.
Reply
#3

Use sockets.
https://sampforum.blast.hk/showthread.php?tid=333934
Reply
#4

there's kinda workaround you could do.

let's assume that you're saving player account details in a MySQL db.
What we do now is add a new entry to every account, it'll be a SmallInt
and lets call it "connected". the value of "connected" is set to 1 once some1
log in to his account and to 0 once that player disconnects.

we could then use that new entry as indicator for a player being online/offline.
we don't need to use the web API anymore, it'll be simple php querying your player db for that entry
in every row. like this, it doesn't matter if theres 50 or 500 players online. there's no limit using that method.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)