Existproperty

From SA-MP Wiki

Jump to: navigation, search

existproperty

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

Check if a property exist.


Parameters:
(id=0, const name[]="", value=cellmin)
idThe virtual machine to use, you should keep this zero.
name[]The property's name, you should keep this "".
valueThe property's unique ID. Use the hash-function to calculate it from a string.


Return Values:

True if the property exists and false otherwise.


Example Usage:

if ( existproperty(0, "", 123984334) )
{
    //the property exists, do something
}


Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools