Skip to content

GET_USER_INT

Jurek Muszyński edited this page May 13, 2019 · 3 revisions

int GET_USER_INT(const char *key, long *value)

Description

Retrieves user (long) integer setting from users_settings table.

Returns

Returns OK or one of the error codes:

  • ERR_NOT_FOUND
  • ERR_INT_SERVER_ERROR

Example

long order_id=0;
GET_USER_INT("last_order_id", &order_id);

Notes

Requires USERS compilation switch.

Clone this wiki locally