Raised This Month: $ Target: $400
 0% 

Retrieving strings by using fake/dynamic natives


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 06-22-2010 , 10:33   Retrieving strings by using fake/dynamic natives
Reply With Quote #1

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_nameid 
and in the main plugin the function behind the native looks like this:
PHP Code:
// ......
 
public native_get_persons_nameid )
{
    static 
name[32]
    
get_user_nameid 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
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode