My Filterscript makes it so no server commands work (IE. Commands in the GM)
#16

HellSphinX's version is absolutely correct. To add some explanations of what he did, firstly the strcmp thing he already explained. The other problem was the wrong position of the return 1; in the code:

pawn Код:
if(strcmp(cmdtext,"/maps",true)==0)
    {
        GameTextForPlayer(playerid,"~w Maps by 18240 ]/edm] ]/aarace] ]/bikestunt]",2500,3);
    }
return 1; // This return should be before the closing bracket } of the if-block
The return was outside the { } brackets, and so out of the if-code. So it is executed everytime, no matter if that command was typed, or not. And the return 1; means no other commands /other OnPlayerCommandText in other filterscripts and the gamemode, will be processed, thats why the other commands didnt work.
Reply


Messages In This Thread
My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:15
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by MP2 - 18.07.2012, 21:21
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:24
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:26
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:27
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by SA-MPDrifter - 18.07.2012, 21:29
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:31
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:32
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by SA-MPDrifter - 18.07.2012, 21:34
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:36
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:39
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:58
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by SA-MPDrifter - 18.07.2012, 21:59
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 22:02
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [KHK]Khalid - 18.07.2012, 22:54
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by Mauzen - 18.07.2012, 23:25
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 23:46

Forum Jump:


Users browsing this thread: 1 Guest(s)