22.09.2013, 09:34
Hi, my problem to crash server linux is funkcion map_insert_arr.
Code (1 post)
Code (1 post)
Code:
//filterscript ap.p #include <a_samp> #include <cstl> new const FIRST_MAP = 0; public OnFilterScriptInit() { map_insert_arr(FIRST_MAP, "key", "This is value"); if (map_contains(FIRST_MAP, "key") == 1) { new buffer[100]; map_get_arr(FIRST_MAP, "key", buffer, 100); printf("Map key \"key\" has value: %s", buffer); } printf("Map length is now: %i", map_size(FIRST_MAP)); map_remove(FIRST_MAP, "key"); printf("After removal size is: %i", map_size(FIRST_MAP)); return 1; }