Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Loss of player scope during waitfor() (https://forums.graalonline.com/forums/showthread.php?t=78895)

Inverness 03-01-2008 01:02 PM

Loss of player scope during waitfor()
 
Well, in my MUD system, on the player's serverside mud object, the reflect function (which sends data to client) is waiting for certain functions to be done before its allowed to continue, and using an echo before and after the wait I noticed that afterwards it is loosing the player as the scope ("player == null" in script).

Obvious solution is to save the player to a variable but its still irritating.

cbk1994 03-01-2008 04:40 PM

Quote:

Originally Posted by Inverness (Post 1377252)
Well, in my MUD system, on the player's serverside mud object, the reflect function (which sends data to client) is waiting for certain functions to be done before its allowed to continue, and using an echo before and after the wait I noticed that afterwards it is loosing the player as the scope ("player == null" in script).

Obvious solution is to save the player to a variable but its still irritating.

That's strange o.o
Has always worked for me.

Admins 03-06-2008 05:47 PM

Hmmm sleep() and scheduleevent() are keeping the player object, but waitfor() not yet, will need to add that.

xXziroXx 08-16-2008 09:58 PM

Quote:

Originally Posted by Stefan (Post 1378209)
Hmmm sleep() and scheduleevent() are keeping the player object, but waitfor() not yet, will need to add that.

Have you yet?

zokemon 06-02-2009 05:23 PM

Bump for great justice.


All times are GMT +2. The time now is 01:37 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.