Existproperty

From SA-MP Wiki

Jump to: navigation, search

Existproperty


Check if a property exist.


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


ReturnsTrue if the property exists and false otherwise.


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


Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools