Raised This Month: $51 Target: $400
 12% 

[TUT] Plugin API


Post New Thread Reply   
 
Thread Tools Display Modes
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-03-2006 , 00:42   Re: Plugin API
Reply With Quote #21

Quote:
Originally Posted by SweatyBanana View Post
Its not very helpful not being able to read thru others posts when they no longer exist to the common user
THats because they were deleted for a purpose. And if they were helpfull they would stay.
Freecode is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 09-03-2006 , 00:42   Re: Plugin API
Reply With Quote #22

Ok
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Dancing Bread
BANNED
Join Date: Aug 2006
Location: 714 cuz
Old 09-03-2006 , 20:35   Re: Plugin API
Reply With Quote #23

Do you have to use
Code:
public plugin_natives() {             register_natives("whatever" , "whatever") }
like you do with the API functions ?
Dancing Bread is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-03-2006 , 22:42   Re: Plugin API
Reply With Quote #24

Quote:
Originally Posted by Dancing Bread View Post
Do you have to use
Code:
public plugin_natives() { register_natives("whatever" , "whatever") }

like you do with the API functions ?
register_native, but I don't understand your question
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Dancing Bread
BANNED
Join Date: Aug 2006
Location: 714 cuz
Old 09-03-2006 , 23:34   Re: Plugin API
Reply With Quote #25

well in your API tutoriol you stated that you have to register the natvies inside a public plugin_natives function and dont try to put them in the regular plugin_init function . so here when we register the natives do we do it hte same way ?
Dancing Bread is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-04-2006 , 10:18   Re: Plugin API
Reply With Quote #26

Quote:
Originally Posted by Dancing Bread View Post
well in your API tutoriol you stated that you have to register the natvies inside a public plugin_natives function and dont try to put them in the regular plugin_init function . so here when we register the natives do we do it hte same way ?
I assume you mean "where when we register the [forwards do we put them]?". But anyway, you can create a forward at any time. It really doesn't matter whether you create it, execute it, then destroy it, or create it on map start, execute it when needed, and then destroy it on map change.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 04-11-2008 , 18:06   Re: [TUT] Plugin API
Reply With Quote #27

Quote:
Originally Posted by Hawk552
The next part we find is DestroyForward. The functionality for this is quite obvious, and can be used on any forward but should be used by the time plugin_end is called (or the FM forward for server shutting down) otherwise memory leaks can occur.
Is this true? Because I was told by a person that it wasnt needed.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-11-2008 , 19:21   Re: [TUT] Plugin API
Reply With Quote #28

AFAIK since I wrote this it was changed such that it frees all forwards on plugin_end. I suggest running it anyway as it's good practice.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 04-13-2008 , 07:17   Re: [TUT] Plugin API
Reply With Quote #29

Did AMXX have floating point integers back in 2006?

Last edited by Lee; 04-13-2008 at 07:52.
Lee is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-13-2008 , 09:54   Re: [TUT] Plugin API
Reply With Quote #30

Umm, it never truly had floats, if that's what you mean. But it's always had some sort of basic support for it, done entirely through natives.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 17:27.


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