SA-MP Forums Archive
Where do I place my script? - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Where do I place my script? (/showthread.php?tid=569272)



Where do I place my script? - joedyjoe - 29.03.2015

So yeah. I just need to know where do I place this. I'm trying to learn something myself, pending for help.

The script itself:



So where do I place it here, or do I place it somewhere else?




Re: Where do I place my script? - CalvinC - 29.03.2015

Place the roleplay.pwn in your gamemodes folder, and use pawno to compile it to an AMX file.


Re: Where do I place my script? - joedyjoe - 29.03.2015

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Place the roleplay.pwn in your gamemodes folder, and use pawno to compile it to an AMX file.
Thanks. But how do I compile it, what to write / do?

When I press this:

It just pops up as an empty space:


What to write?


Re: Where do I place my script? - arjanforgames - 29.03.2015

Quote:
Originally Posted by joedyjoe
Посмотреть сообщение
Thanks. But how do I compile it, what to write / do?

When I press this:

It just pops up as an empty space:


What to write?
I think it's still compiling when you don't see anything. Just be patient.


Re: Where do I place my script? - joedyjoe - 29.03.2015

Quote:
Originally Posted by arjanforgames
Посмотреть сообщение
I think it's still compiling when you don't see anything. Just be patient.
It says this:



Re: Where do I place my script? - Michael B - 29.03.2015

Also, after compiling, remember to go to your server.cfg and place at the "gamemode"one the name of your gamemode.

Quote:

gamemode(n) (N) (t)
It's possible to set the gamemode that plays, how many times it plays and when it plays by editing the values here. To use this correctly you must understand how it works, (n) is the gamemode number, (N) is the gamemode name*, and (t) is the times played before switching onto the next mode. By default this area will look like this:

E.g gamemode0 grandlarc 1


Re: Where do I place my script? - Sensation - 29.03.2015

Quote:
Originally Posted by joedyjoe
Посмотреть сообщение
It says this:
First run as administrator the pawno.exe then open your script and compile your script with F6 button.


Re: Where do I place my script? - CalvinC - 29.03.2015

You don't need the PWN file in your gamemodes folder, just the AMX.
If you have your AMX file there, and you set it in your server.cfg as @Michael B said, you can start your server by starting the samp-server.exe.


Re: Where do I place my script? - joedyjoe - 29.03.2015

And now I can't fort forward my server. https://sampforum.blast.hk/showthread.php?tid=569295


Re: Where do I place my script? - joedyjoe - 29.03.2015

bump