Rank, possibility lag?
Hi guys. I wanted to know if this way of obtaining rank can cause server lag. Sorry for my english :c
PHP Code:
|
Re: Rank, possibility lag?
Use threaded queries: https://forums.alliedmods.net/showthread.php?t=46779
|
Re: Rank, possibility lag?
Use the AuthID as a key to narrow down the results to one.
|
Re: Rank, possibility lag?
Oh, I didn't even look at the SQL, lol. Put as much filtering criteria as possible.
|
Re: Rank, possibility lag?
Solution:
PHP Code:
|
Re: Rank, possibility lag?
Show us the table layout.
The id changes when the player is connected timing. Use the SteamID that you can get with get_user_authid. |
Re: Rank, possibility lag?
Quote:
https://i.imgur.com/ft1Ypag.png |
Re: Rank, possibility lag?
Add a field for steam id and use that to identify players.
|
Re: Rank, possibility lag?
Quote:
UserID (Account) change to UserID = SteamID ? |
Re: Rank, possibility lag?
Yeah, the field name doesn't matter.
|
| All times are GMT -4. The time now is 17:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.