How to edit stuff in gamemode and create a filescript for them ?[+REP]
#1

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.
Reply
#2

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
Reply
#3

Quote:
Originally Posted by Thogy
Посмотреть сообщение
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
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.
Reply
#4

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:
pawn Код:
#include "Test.pwn"
Should print "test" when someone connects.
Reply
#5

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:
pawn Код:
#include "Test.pwn"
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)