AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Some Question (https://forums.alliedmods.net/showthread.php?t=95678)

ƒa†es™ 06-26-2009 02:58

Some Question
 
what is the meaning of this :

PHP Code:

if(!is_user_connectedid 

And this :

PHP Code:

if( is_user_connectedid 


Emilioneri 06-26-2009 03:02

Re: Some Question
 
PHP Code:

if (!is_user_connectedid )) 

means "If user is not connected"

PHP Code:

if (is_user_connectedid )) 

means "If user is connected"

:D:D

Arkshine 06-26-2009 04:24

Re: Some Question
 
Try to search yourself, you can find a description on the funcwiki : is_user_connected().

BOYSplayCS 06-26-2009 12:30

Re: Some Question
 
PHP Code:

if(!is_user_connectedid 

This is opening a statement saying: "If the user is NOT connected."

PHP Code:

if(is_user_connectedid 

This is opening a statement saying: "If the user IS connected."

You can simply switch the statement by putting a "!" symbol before your operation.

In Pawn, and some other languages, "!" refers to "not" or "false."

A little bit like a Boolean expression.

Hope I helped.



All times are GMT -4. The time now is 15:35.

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