How to edit stuff in gamemode and create a filescript for them ?[+REP] - 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: How to edit stuff in gamemode and create a filescript for them ?[+REP] (
/showthread.php?tid=533867)
How to edit stuff in gamemode and create a filescript for them ?[+REP] -
EgyptForLife - 26.08.2014
Hello,
I scripted a Role Play gamemode, which had a lot of lines ( ~129012 ). And when I want to compile it, pawno crash. So I want to make commands in a filescript. And messages in other and etc .... Can you tell me how to do it ?
Thank You
Who tell me how and it works, will give him +REP.
Re: How to edit stuff in gamemode and create a filescript for them ?[+REP] -
Thogy - 26.08.2014
You don't need make commands in a filterscripts.
You can install other pawn editor with higher memory.
You can try this:
http://www.solidfiles.com/d/oBJj/samp_editor.rar
Re: How to edit stuff in gamemode and create a filescript for them ?[+REP] -
EgyptForLife - 26.08.2014
Quote:
Originally Posted by Thogy
|
It is not working, as I said my gamemode is HUGE and have more than 129k Lines. I need to make gamemode have about 50k. And the other in filescripts. Each filescript for specific stuff.
Re: How to edit stuff in gamemode and create a filescript for them ?[+REP] -
Stinged - 26.08.2014
You don't need filterscripts. You can make new files and call them something like "Commands.pwn" in your gamemodes folder. And then you can use y_hooks or ALS hooking method to hook the callbacks.
And then in your gamemode, include that file, for example: #include "Commands.pwn"
For example:
In the file, for example Test.pwn:
pawn Код:
#include <YSI\y_hooks>
hook OnPlayerConnect(playerid)
{
print("Test");
}
In your gamemode:
Should print "test" when someone connects.
Re: How to edit stuff in gamemode and create a filescript for them ?[+REP] -
EgyptForLife - 26.08.2014
Quote:
Originally Posted by Stinged
You don't need filterscripts. You can make new files and call them something like "Commands.pwn" in your gamemodes folder. And then you can use y_hooks or ALS hooking method to hook the callbacks.
And then in your gamemode, include that file, for example: #include "Commands.pwn"
For example:
In the file, for example Test.pwn:
pawn Код:
#include <YSI\y_hooks>
hook OnPlayerConnect(playerid) { print("Test"); }
In your gamemode:
Should print "test" when someone connects.
|
I want to make it in filescripts cause it will make it easier for me to put in server. I just want to know How.