importing samp functions into python script [help] - 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: importing samp functions into python script [help] (
/showthread.php?tid=269874)
importing samp functions into python script [help] -
Sfinx_17 - 18.07.2011
hello, i am trying to write a python code for my samp server, but i don't know how to import all of samp functions into my script, i would apreciate if someone could show me an example code, thanks
Re: importing samp functions into python script [help] -
Calgon - 18.07.2011
Following on from what ****** said: Someone actually released a plugin to script a SA-MP server in Python, so you're in luck (see
here), but as ****** said, you can't just begin scripting in any language - someone has to create support for the language by writing some form of a wrapper plugin.
Re: importing samp functions into python script [help] -
Sfinx_17 - 18.07.2011
yes i have a plugin , the plugin from "fabsch", i readed his page on how to setup, for beeing able to write a python code for samp, it seems that all is working fine but my script is not loaded into the server, on server.cfg i added this:
gamemode0 python 1, into the gamemode directory i have a script called "python" so for this reason i added on this line: gamemode0 python 1, but the script is not loaded when i am playing into the server, and the second problem is that i don't know how to import all my sa-mp functions into the python script