You have to proceed as get_user_name
Code:
native get_user_login(index, dest[], maxlen);
I think something like that but i've never used set_string and its 2nd param is named dest, i think it should be named source[] and then the usage should be ok.
PHP Code:
new g_szTempName[33][100];
public plugin_natives()
{
register_native("get_user_login", "native_get_user_login");
}
public native_get_user_login(plugin, params)
{
new id = get_param(1);
if( 1 <= id <= 32 )
{
set_string(2, g_szTempName[id], get_param(3));
return 1;
}
return 0;
}
__________________