Existproperty
From SA-MP Wiki
(Redirected from Function:existproperty)
existproperty
Note: This function name starts with a lowercase letter. |
Description:
Check if a property exist.
(id=0, const name[]="", value=cellmin)
id | The virtual machine to use, you should keep this zero. |
name[] | The property's name, you should keep this "". |
value | The 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.
- Setproperty: Set a property.
- Getproperty: Get the value of a property.
- Deleteproperty: Delete a property.