I want to get/set value from
PHP Code:
char m_szTeamName[TEAM_NAME_LENGTH]; // offset is 383
I'm tried to use (get/set)_pdata_string, but it's not work =(
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "KORD_12.7"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say get", "get")
register_clcmd("say set", "set")
}
public get(id)
{
new m_szTeamName[16]
get_pdata_string(id, 383, m_szTeamName, charsmax(m_szTeamName), .linux = 5)
client_print(id, print_chat, "m_szTeamName is ^"%s^"", m_szTeamName)
}
public set(id)
{
set_pdata_string(id, 383, "zombie", .linux = 5)
}
Any idea?
PS
Running hldm steam server
__________________