Raised This Month: $ Target: $400
 0% 

How to get value from other plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alter
Member
Join Date: Jan 2013
Location: Lithuainia
Old 01-23-2013 , 13:25   How to get value from other plugin?
Reply With Quote #1

For example in my plugin there is code.
PHP Code:
new bool:g_hasbazooka[33
How can i get this value
PHP Code:
if ( g_hasbazooka 
on other plugin?

Last edited by alter; 01-23-2013 at 13:25.
alter is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-23-2013 , 13:34   Re: How to get value from other plugin?
Reply With Quote #2

PHP Code:
public plugin_natives()
    
register_native("get_user_bazooka""_get_user_bazooka_"1)

public 
_get_user_bazooka_pPlayer )
{
    return 
g_hasbazookapPlayer ]; 

Other plugin:

native get_user_bazooka( Index )


//code... if( get_user_bazooka( pPlayer ) ) ...
__________________

Last edited by Bos93; 01-23-2013 at 13:36.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Reply


Thread Tools
Display Modes

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 20:31.


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