This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Solved] Problem executing forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-29-2011 , 23:41   [Solved] Problem executing forward
Reply With Quote #1

I cannot get a forward to execute in plugin.

Desired forward in plugin is: myforward( int )

I've confirmed that the code is being reached where MF_ExecuteForward is but the forward isn't being executed in my plugin. Am I missing something?
PHP Code:
//Global
int iFwd = -1;

void OnPluginsLoaded()
{
    
iFwd MF_RegisterForward("myforward",ET_IGNORE,FP_CELL,FP_DONE);
}

//Execute call in function
MF_ExecuteForwardiFwd myint ); 
In my include:
PHP Code:
forward myforward(i); 
In my plugin:
PHP Code:
public myforward)
{


__________________

Last edited by Bugsy; 09-30-2011 at 20:05.
Bugsy is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-30-2011 , 00:53   Re: Problem executing forward
Reply With Quote #2

myforward and myforwardl ??? typo ??
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-30-2011 , 07:11   Re: Problem executing forward
Reply With Quote #3

Yes, typo :B
__________________
Bugsy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-30-2011 , 20:05   Re: Problem executing forward
Reply With Quote #4

Solved. I had my forward registered in void OnAmxxAttach() and not OnPluginsLoaded(). :-B
__________________
Bugsy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-30-2011 , 20:07   Re: [Solved] Problem executing forward
Reply With Quote #5

What kind of module do you make ?
__________________
Arkshine is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-30-2011 , 20:26   Re: [Solved] Problem executing forward
Reply With Quote #6

Working on a sockets module that is a little more user friendly. Will include forwards for events like: Socket_Connected(), Socket_DataArrival(), Socket_Disconnected() to do away with users having to setup tasks\thinking-ents in plugin code.
__________________

Last edited by Bugsy; 09-30-2011 at 21:09.
Bugsy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2011 , 04:45   Re: [Solved] Problem executing forward
Reply With Quote #7

Sounds sexy !
__________________
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-01-2011 , 05:30   Re: [Solved] Problem executing forward
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
Working on a sockets module that is a little more user friendly. Will include forwards for events like: Socket_Connected(), Socket_DataArrival(), Socket_Disconnected() to do away with users having to setup tasks\thinking-ents in plugin code.
Please, do it threaded! I am tired of server stalling when working with sockets
__________________
xPaw is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-01-2011 , 08:50   Re: [Solved] Problem executing forward
Reply With Quote #9

Not doing threaded but the sockets are asynchronous so there should be no freezing. I have most of the Windows part done, haven't yet looked into unix to see if there is an equivalent.

Some info: http://www.gamedev.net/page/resource...-sockets-r1297
__________________
Bugsy is offline
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 13:07.


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