SA-MP Forums Archive
how to merge fs? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to merge fs? (/showthread.php?tid=241259)



how to merge fs? - misho1 - 17.03.2011

i want to put allot of fs in my server but the maximum is only 16 so how to merge fs?


Re: how to merge fs? - misho1 - 17.03.2011

so i am waiting to any answer......


Re: how to merge fs? - Stigg - 17.03.2011

Quote:
Originally Posted by misho1
Посмотреть сообщение
so i am waiting to any answer......
It can take time. Be patient.


Re: how to merge fs? - alpha500delta - 17.03.2011

Just open the 1st FS, copy the input of the 2nd FS under the right callbacks, and remove any double codes and brackets...


Re: how to merge fs? - misho1 - 17.03.2011

ok thnx


Re: how to merge fs? - misho1 - 17.03.2011

i have problem when i copy the 1st fs to the 2nd fs it say problem
Код:
F:\Fun and Games server\filterscripts\EMenu.pwn(99) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: how to merge fs? - maramizo - 17.03.2011

Lmao.
Take the commands from one OnPlayerCommandText and put them in the other one.


Re: how to merge fs? - misho1 - 18.03.2011

i put 3 fs in one fs and when i open samp-server the samp-server can't work why


Re: how to merge fs? - Mike Garber - 18.03.2011

You can't just copy everything...

EXAMPLE:



pawn Код:
// IN FIRST FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
    // **** CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE *****
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
    }
    // **** CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE *****
   
    return 0;
   
}

So you copy the COMMAND from INSIDE the public function,
and paste it INSIDE the public function in the other script


pawn Код:
// IN THE OTHER FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/hi", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /hi command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/test", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /test command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/grab", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /grab command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/grub", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /grub command!");
        return 1;
    }
   
   
    // ***** PASTE HERE PASTE HERE PASTE HERE
   
    // >>>>>>>
   
    // *****************************************************
    return 0;

}



Re: how to merge fs? - misho1 - 25.03.2011

OK THNX