Question: Player not in game run-time error
Is it possible to use is_user_connected() on a userid to determine if a user is in-game, or is it merely a check for a valid user being connected to the server?
This line of code: entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping is causing this run-time error: L 10/07/2004 - 14:50:54: [AMXX] Run time error 10 (native) on line 851 (file "uwc3.sma"). L 10/07/2004 - 14:50:54: [Engine] Invalid player 1 (not in-game) so I am looking for an easy way to check that the player is in-game before letting the command function. And on a different note, if you read this Bailopan, thanks for the is_user_connected() suggestion, it helped solve many of the other run-time errors that were being generated. Thanks, -K2 |
Pimp Daddy has informed me that by doing that (adding is_user_connected( id )) to all of his task'ed functions, runtimes have been cut down CONSIDERABLY for his war3 mod :)
I also received a couple of these with mine, and am going to do that in attempt to fix them. Hey PIMP, one post from you and dopefish and it's a war3 party in here WEoOoeoOOoOoeoOOOoo! :P |
Yes, is_user_connected checks for ingame.
|
Thanks Bailopan!
I agree Ryan, checking for is_user_connected() has clesred up a bunch of those errors. Specifically calls to the native functions need to have this check added... :) -K2/Mug |
| All times are GMT -4. The time now is 17:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.