Raised This Month: $ Target: $400
 0% 

Putting all plugins in 1 SMA?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-29-2010 , 10:11   Re: Putting all plugins in 1 SMA?
Reply With Quote #3

Copy paste all functions, and add calls to the additional ones in the end of the original functions.
For example, you have two plugins that use Ham_TakeDamage:
Code:
//Plugin 1 plugin_init() {     RegisterHam(Ham_TakeDamage, "player", "Ham_TakeDamage"); } public Ham_TakeDamage(id) {     // mimimi.. }
Code:
//Plugin 2 plugin_init() {     RegisterHam(Ham_TakeDamage, "player", "FwdTakeDamage"); } public FwdTakeDamage(id) {     // bla bla bla... }

Code:
// Plugins merged: plugin_init() {     RegisterHam(Ham_TakeDamage, "player", "Ham_TakeDamage"); // leave only one registration } public Ham_TakeDamage() {     // mimimi..     FwdTakeDamage(id); } public FwdTakeDamage() {     // bla bla bla... }
Seta00 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 05:16.


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