Getproperty
From SA-MP Wiki
Getproperty
Get a specific property from the memory, the string is returned as a packed string!
Parameters:(id=0, const name[]="", value=cellmin, string[]="")
| id=0 | The virtual machine to use, you should keep this zero. |
| const name[]="" | The property's name, you should keep this "". |
| value=cellmin | The property's unique ID, Use the hash-function to calculate it from a string. |
| &string[]="" | The variable to store the result in, passed by reference. |
| Returns | The value of a property when the name is passed in; fills in the string argument when the value is passed in. If the property does not exist, this function returns zero. |
new value[16]; getproperty(0, "", 123984334, value); print(value);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- Setproperty: Set a property.
- Deleteproperty: Delete a property.
- Existproperty: Check if a property exists.
