SA-MP Forums Archive
Make plugins in another programming language? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: Make plugins in another programming language? (/showthread.php?tid=117970)



Make plugins in another programming language? - Programie - 02.01.2010

Hi,

I'm writing my programs in PureBasic. This language is a very powerful programming language. At some parts it's faster than C++...
I can also create program libraries (.so/.dll) with PureBasic.

But is it also possible to write plugins for SAMP with this language?
I think I just have to know which functions were called by the server.


Re: Make plugins in another programming language? - SMX - 02.01.2010

It should be easier if this is realised.


Re: Make plugins in another programming language? - Streetplaya - 05.01.2010

Quote:
Originally Posted by Programie
Hi,

I'm writing my programs in PureBasic. This language is a very powerful programming language. At some parts it's faster than C++...
I can also create program libraries (.so/.dll) with PureBasic.

But is it also possible to write plugins for SAMP with this language?
I think I just have to know which functions were called by the server.
You need to export functions like Supports, Load, Unload, AmxLoad, AmxUnload


Re: Make plugins in another programming language? - Programie - 05.01.2010

And which parameters were send to the functions?
And what should return these functions?

I mean somthing like that:

Quote:

FunctionName(Parameter1,Parameter2,...,ParameterN) ;

And this function has to return something (true, false, ...).


Re: Make plugins in another programming language? - Streetplaya - 05.01.2010

Quote:
Originally Posted by Programie
And which parameters were send to the functions?
And what should return these functions?

I mean somthing like that:

Quote:

FunctionName(Parameter1,Parameter2,...,ParameterN) ;

And this function has to return something (true, false, ...).
Have a look at the SA-MP Plugin SDK, they are described there