How to get player's stats from table #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, how can I get player's variable from table?
My table contains columns:
id | nick | level | xp%{sql::level::1}%showing me levels of player with id 1.Can I do something like this?
%{sql::level::%player%}%?I want to set variable to level of player who joined to the server but %player% and %{_player}% (set to player's nickname) sending
<none>.And I want to ask.. It is good idea to save 1000+ player's stats to variable in every 3 seconds?
Cause to refresh I must save that all again? It will not lag?
you can loop the list variable and convert 1 to %player%, it is up to you how you implement the logic for it (it is definitely possible)
about saving a lot of stats to variable, it depends if you're using diskless variables or not, (?!-).* if not, that is a bad idea
you may be able to think of something more efficient than saving 1000+ stats every 3 seconds, sounds like a bad design issue