I have a problem regarding retrieving strings using fake natives..
For eg i made a plugin who's native can be used by other plugins to get a players name..so in the sub-plugin the native is used like this:
PHP Code:
new user_name
user_name = get_persons_name( id )
and in the main plugin the function behind the native looks like this:
PHP Code:
// ......
public native_get_persons_name( id )
{
static name[32]
get_user_name( id , name , 30 )
// return his name [It is not working....!!!]
return name[32]
}
But the problem is that this method is not working....
I didnt try it but according to my knowledge, in pawn we can not return arrays through natives ....
So is there any other method which can be used here...Thnx in advance
__________________