Raised This Month: $ Target: $400
 0% 

Question: Player not in game run-time error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mugwump
Senior Member
Join Date: May 2004
Old 10-08-2004 , 00:01   Question: Player not in game run-time error
Reply With Quote #1

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
Mugwump is offline
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 10-08-2004 , 00:46  
Reply With Quote #2

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!
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
BAILOPAN
Join Date: Jan 2004
Old 10-08-2004 , 00:51  
Reply With Quote #3

Yes, is_user_connected checks for ingame.
__________________
egg
BAILOPAN is offline
Mugwump
Senior Member
Join Date: May 2004
Old 10-09-2004 , 07:05  
Reply With Quote #4

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
Mugwump is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode