Raised This Month: $ Target: $400
 0% 

Problem to return string from nativ


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-28-2012 , 17:14   Re: Problem to return string from nativ
Reply With Quote #4

You can do this too...
PHP Code:
public plugin_init()
{
    
register_cvar("amx_mode_prefix""[Test]");
}

public 
plugin_natives()
{
    
register_native("get_server_prefix""native_get_server_prefix"1);
}

public 
native_get_server_prefixbuffer[ ], len )
{
    
get_cvar_string"amx_mode_prefix"bufferlen );

PHP Code:
new buffer64 ];
get_server_prefixbuffercharsmaxbuffer ) );
client_printidprint_chat"%s test messages"buffer ); 
__________________

Last edited by Neeeeeeeeeel.-; 06-28-2012 at 17:14.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



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 06:19.


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