Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
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
Posts: 6,129
Threads: 36
Joined: Jan 2009
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.
Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
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