Raised This Month: $ Target: $400
 0% 

Question: Player not in game run-time error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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