Hello, I have been working on a small plugin that will automatically set up the setinfo line for my server admins who want to use the
entmod metamod plugin since it is locked to each individuals SteamID, we have always just went to using the same password so nobody has to 'remember' their password or have it saved in plaintext.
I have added to codeblocks into my hook_say, they are as follows.. the problem is the first get_user_info works, but the 2nd codeblock errors on the second get_user_info stating that there is a native error (10) on get_user_info
For testing purposes, I decided to just copy the entire first codeblock (the 2nd is EXTREMELY similar, however it checks to see if the correct password 'ent' is in the field, and if not it will set it.)
PHP Code:
if(equali(szSaid, "!info ", 6))
{
new target[32];
copy(target, charsmax(target), szSaid[6])
//client_print(id, print_chat, "%s", target);
new t_id = cmd_target(id, target, CMDTARGET_NO_BOTS);
new t_name[33], t_authid[33], t_ip[33], t_sid[33];
get_user_name(t_id, t_name, charsmax(t_name));
get_user_authid(t_id, t_authid, charsmax(t_authid));
get_user_info(t_id, "_ent", t_sid, 32);
client_print(id, print_chat, "%s - %s [%s]", t_name, t_authid, t_sid);
}
if(equali(szSaid, "!rinfo ", 7))
{
new target[32];
copy(target, charsmax(target), szSaid[6])
//client_print(id, print_chat, "%s", target);
new t_id = cmd_target(id, target, CMDTARGET_NO_BOTS);
new t_name[33], t_authid[33], t_sid[33];
get_user_name(t_id, t_name, charsmax(t_name));
get_user_authid(t_id, t_authid, charsmax(t_authid));
get_user_info(t_id, "_ent", t_sid, 32);
client_print(id, print_chat, "%s - %s [%s]", t_name, t_authid, t_sid);
}
Any help with this problem would be greatly appreciated.
__________________