Raised This Month: $ Target: $400
 0% 

How to...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-23-2007 , 20:10   Re: How to...
Reply With Quote #4

Here is one way you can do this:

plugin #1:

PHP Code:
public plugin_natives() 
{
 
register_native("plugin_array_one""native_plugin_array_one")
}
public 
native_plugin_array_one(pluginparams)
{
 if(
params != 1)
  return 
0
 
     
new id get_param(1)
     if(!
id) return 0
      
return array[id]


plugin #2:

PHP Code:
native plugin_array_one(id)
public 
plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
my_function(id)
{
 new 
value plugin_array_one(id)

__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
 



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 10:34.


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