![]() |
Max loop limit question
Been a while!
Anywho, tasked with finding a way to trace a players account from email. This is to find offline players rather than just online, e.g. helping to recover lost accounts where the player has lost access to the email account but still knows the email address that was used to identify etc. I seem to have hit an issue with what I assume are limits imposed by the internals of Graal, my method of getting a list of all the accounts ever used to check against was looping through the player houses folder: PHP Code:
The script of NPC Gund_Lookup has been updated by Gund 15000 Looking for [email protected] in 10000 houses Unable to locate player. |
Quote:
Because you have Quote:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
PHP Code:
I also noticed the method in which you are using to get the players account. What if they don't have a player house? How I would personally do it without loading the accounts folder directly is every player that logs into the game register them in SQL. |
You can indeed raise the maxlooplimit on serverside and clientside.
However, it won't take effect until the next tick, so if you intend to do something that's loop-intensive onCreated() you're going to need to schedule it with scheduleEvent or timeout. |
Quote:
|
Quote:
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 08:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.