character.connected versus character.ip (or character.client.ip)
Posted: Wed Aug 10, 2016 12:34 pm
Hello,
another question to the state of a connection:
At this time we use character.ip to determine, if a user is still online. This was the first method, and we use it often.
At some time the new member character.connected was introduced - we stayed with character.ip, which works fine.
Now - what is better to - for example - end a loop when the player logs off?
or
What is the recommended method?
OWHorus
another question to the state of a connection:
At this time we use character.ip to determine, if a user is still online. This was the first method, and we use it often.
At some time the new member character.connected was introduced - we stayed with character.ip, which works fine.
Now - what is better to - for example - end a loop when the player logs off?
Code: Select all
while (character.client.ip)
...
Code: Select all
while (character.connected)
...OWHorus