settings_api functions
All callable symbols documented in this include, grouped by declaration type.
Natives
| Name | Signature |
|---|---|
| find_option_by_name | native find_option_by_name(optionName[MAX_OPTION_LENGTH]) |
| get_option_cell | native get_option_cell(id, optionId) |
| get_option_string | native get_option_string(id, optionId, buffer[MAX_STR_VALUE_LENGTH]) |
| register_players_option_cell | native register_players_option_cell(optionName[MAX_OPTION_LENGTH], OptionFieldType:fieldType, any:defaultValue = 0) |
| register_players_option_str | native register_players_option_str(optionName[MAX_OPTION_LENGTH], defaultValue[MAX_STR_VALUE_LENGTH]) |
| set_option_cell | native set_option_cell(id, optionId, newValue, bool:notifyMysql = true) |
| set_option_string | native set_option_string(id, optionId, buffer[MAX_STR_VALUE_LENGTH], bool:notifyMysql = true) |
Forwards
| Name | Signature |
|---|---|
| OnCellValueChanged | forward OnCellValueChanged(id, optionId, newValue) |
| OnConnectionIsReady | forward OnConnectionIsReady() |
| OnNotifyMysqlCellValue | forward OnNotifyMysqlCellValue(id, optionId, newValue) |
| OnNotifyMysqlStringValue | forward OnNotifyMysqlStringValue(id, optionId, newValue[MAX_STR_VALUE_LENGTH]) |
| OnOptionsInitialized | forward OnOptionsInitialized() |
| OnRegisterOption | forward OnRegisterOption(optionName[MAX_OPTION_LENGTH], OptionFieldType:fieldType, defaultValue[MAX_STR_VALUE_LENGTH]) |
| OnStringValueChanged | forward OnStringValueChanged(id, optionId, newValue[MAX_STR_VALUE_LENGTH]) |