How to make a callback?
#18

Quote:
Originally Posted by ssǝן‾ʎ
No, polling by calling a native is what I was saying not to do in the first place, just poll the message queue from the main thread. Most threads have main loops, that's how programs work, by looping through code repeatedly, like a timer does but better (you can actually do this in the main() PAWN function too as it's such a fundamental coding technique. From this main loop you poll the message queue, and if a message is present then call the callbackk.
Yes, that is how programs work, but the plugin is not a program. It is a dynamic library that loads subroutines into the server application at runtime, and I am fairly confident it has no main loop. Why would it need one for this purpose? That is all done in the program itself, not the library that runs alongside it.
Reply


Messages In This Thread
How to make a callback? - by fastblast - 10.08.2009, 06:26
Re: How to make a callback? - by Pghpunkid - 10.08.2009, 07:20
Re: How to make a callback? - by fastblast - 10.08.2009, 08:40
Re: [SOLVED]How to make a callback? - by Incognito - 13.08.2009, 07:09
Re: [SOLVED]How to make a callback? - by paytas - 13.08.2009, 13:53
Re: [SOLVED]How to make a callback? - by fastblast - 13.08.2009, 14:27
Re: [SOLVED]How to make a callback? - by Incognito - 13.08.2009, 15:10
Re: [SOLVED]How to make a callback? - by fastblast - 15.08.2009, 21:07
Re: [SOLVED]How to make a callback? - by Incognito - 15.08.2009, 21:59
Re: [SOLVED]How to make a callback? - by Incognito - 22.08.2009, 23:02
Re: [SOLVED]How to make a callback? - by Incognito - 23.08.2009, 21:24
How to make a callback? - by fastblast - 24.08.2009, 08:31
How to make a callback? - by [NoV]LaZ - 24.08.2009, 08:40
Re: How to make a callback? - by Incognito - 24.08.2009, 18:27
Re: How to make a callback? - by Incognito - 25.08.2009, 16:52
Re: How to make a callback? - by XCultz - 26.08.2009, 20:36
Re: How to make a callback? - by kaisersouse - 26.08.2009, 21:16
Re: How to make a callback? - by Incognito - 29.08.2009, 17:37
Re: How to make a callback? - by Incognito - 31.08.2009, 23:33
Re: How to make a callback? - by hansen111 - 01.09.2009, 07:04
Re: How to make a callback? - by hansen111 - 01.09.2009, 07:23
Re: How to make a callback? - by fastblast - 01.09.2009, 10:10
Re: How to make a callback? - by Incognito - 01.09.2009, 17:10
Re: How to make a callback? - by hansen111 - 01.09.2009, 17:21
Re: How to make a callback? - by Streetplaya - 27.10.2009, 21:23
Re: How to make a callback? - by Y_Less - 28.10.2009, 10:02

Forum Jump:


Users browsing this thread: 2 Guest(s)