Raised This Month: $51 Target: $400
 12% 

is_user_connected and user alive


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GinNNy
Senior Member
Join Date: Mar 2014
Old 04-01-2014 , 00:11   is_user_connected and user alive
Reply With Quote #1

hi is this correct?
if(is_user_connected(id) && is_user_alive(id))

cause its give me tag mismatch
GinNNy is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 04-01-2014 , 00:36   Re: is_user_connected and user alive
Reply With Quote #2

is_user_alive already has check is_user_connected
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-01-2014 , 06:18   Re: is_user_connected and user alive
Reply With Quote #3

That alone won't give you a tag mismatch unless you have previously tagged id as something else.
Post the whole snippet.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 04-01-2014 at 06:18.
hornet is offline
extream87
Senior Member
Join Date: Aug 2011
Old 04-01-2014 , 07:07   Re: is_user_connected and user alive
Reply With Quote #4

Only
Code:
if (is_user_alive(id))

To check dead player.
Code:
if (!is_user_alive(id))
extream87 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 04-02-2014 , 07:03   Re: is_user_connected and user alive
Reply With Quote #5

Quote:
Originally Posted by extream87 View Post
Only
Code:
if (is_user_alive(id))

To check dead player.
Code:
if (!is_user_alive(id))
you should also use is_user_connected when checking for dead players since is_user_alive will return false when player is not connected

Last edited by jimaway; 04-02-2014 at 07:03.
jimaway 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 12:34.


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