{"id":19989739,"url":"https://github.com/pycckue-bnepeg/samp-plugin-example","last_synced_at":"2025-06-19T18:42:52.659Z","repository":{"id":80458589,"uuid":"121442690","full_name":"Pycckue-Bnepeg/samp-plugin-example","owner":"Pycckue-Bnepeg","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-04T22:47:55.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T12:20:01.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pycckue-Bnepeg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-13T22:12:14.000Z","updated_at":"2022-09-21T10:46:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"dce96780-1cfe-4695-8ad8-7efc60801d85","html_url":"https://github.com/Pycckue-Bnepeg/samp-plugin-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycckue-Bnepeg%2Fsamp-plugin-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycckue-Bnepeg%2Fsamp-plugin-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycckue-Bnepeg%2Fsamp-plugin-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycckue-Bnepeg%2Fsamp-plugin-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pycckue-Bnepeg","download_url":"https://codeload.github.com/Pycckue-Bnepeg/samp-plugin-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430318,"owners_count":19961635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T04:49:56.651Z","updated_at":"2025-03-01T21:52:22.080Z","avatar_url":"https://github.com/Pycckue-Bnepeg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SA:MP Plugin Example\nThere is a simple Memcached plugin showing how to use samp-sdk in Rust.\n\n## Include file\n```C\nnative Memcached_Connect(const address[]);\nnative Memcached_Get(connection, const key[], \u0026value);\nnative Memcached_GetString(connection, const key[], value[], size=sizeof(value));\nnative Memcached_Set(connection, const key[], value, expire);\nnative Memcached_SetString(connection, const key[], const value[], expire);\nnative Memcached_Delete(connection, const key[]);\nnative Memcached_Increment(connection, const key[], value);\n```\n\n## Pawn example\n```C\nmain() {\n\tnew con = Memcached_Connect(\"memcache://localhost:11211\");\n\t\n\tMemcached_Set(con, \"foo\", 228, 0);\n\t\n\tnew value = 0;\n\tnew string[256];\n\n\tif (Memcached_Get(con, \"foo\", value)) {\n\t\tprintf(\"%d\", value);\n\t} else {\n\t\tprintf(\"cannot get a value\");\n\t}\n\n\tMemcached_Delete(con, \"foo\");\n\tMemcached_Set(con, \"foo\", 1, 0);\n\tMemcached_Increment(con, \"foo\", 5);\n\tMemcached_Get(con, \"foo\", value);\n\tMemcached_SetString(con, \"string\", \"some value\", 0);\n\tMemcached_GetString(con, \"string\", string);\n\n\tprintf(\"%d %s\", value, string);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycckue-bnepeg%2Fsamp-plugin-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycckue-bnepeg%2Fsamp-plugin-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycckue-bnepeg%2Fsamp-plugin-example/lists"}