Hello!
I have a script going which should check if a player exists. The player should not have to be online.
The script looks something like this:
This works as long as the player requested is online. As soon as the player logs off, the script will fail to create the Player and it will return false.
Is there a simple way to solve this or do I have to make e.g. a custom DB query to check for players?
Edit: I'm using TFS 1.1.
Thanks!
I have a script going which should check if a player exists. The player should not have to be online.
The script looks something like this:
Code:
if Player(name) then
return true
else
return false
end
This works as long as the player requested is online. As soon as the player logs off, the script will fail to create the Player and it will return false.
Is there a simple way to solve this or do I have to make e.g. a custom DB query to check for players?
Edit: I'm using TFS 1.1.
Thanks!