[SOLVED] Filterscript Commands Not Working
#1

Facts:
1. Server is running, players are connected
2. Filterscript has no errors or warnings
3. Filterscript is loaded
4. Gamemode has no errors or warnings
5. /testskin is working, teleports player to Binco
6. /test is not working, server returns 'Unknown command' message
7. /mycommand not working either
8. DCMD is not problem... i implemented DCMD in a_samp include and it works in GM
9. All other things in other FS work, just commands that are in FSs wont work, in any of them
10. Only 4 FS loaded

Tried Fixes:
1. Changing returns to 0/1 etc.

Solved:
1. Don't load FilterScript in OnGamemodeInit
2. There was a broken function inside script that blocked all other things
3. OnPlayerCOmamndText should return 0 value in each FS

GAMEMODE COMMAND - WOKING
Code:
dcmd_testskin(playerid,params[])
{
	#pragma unused params
	SendClientMessage(playerid,green,"   Binco Test Point!");
	SetPlayerPos(playerid,215.4698,-99.7461,1006.2578);
	SetPlayerFacingAngle(playerid,0);
	SetPlayerVirtualWorld(playerid,0);
	SetPlayerInterior(playerid,15);
	SetCameraBehindPlayer(playerid);
  return 1;
}
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(testskin,8,cmdtext);
    return 0;
}

FILTERSCRIPT COMMAND - "SERVER: Unknown command"
Code:
dcmd_test(playerid,params[])
{
	#pragma unused params
	SendClientMessage(playerid,green,"Test Sucessful!");

	return 1;
}
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(test,4,cmdtext);
	return 0;
}
I am scripter for too long time and i can't find the freaking problem, rofl...
Any info or suggestions are taken! Thank you!
Reply


Messages In This Thread
[SOLVED] Filterscript Commands Not Working - by Gimax - 07.07.2009, 09:04
Re: [HELP REQUEST[ Filterscript Commands Not Working - by refshal - 07.07.2009, 09:06
Re: [HELP REQUEST[ Filterscript Commands Not Working - by Gimax - 07.07.2009, 09:07
Re: [HELP REQUEST] Filterscript Commands Not Working - by refshal - 07.07.2009, 09:10
Re: [HELP REQUEST] Filterscript Commands Not Working - by happyface - 07.07.2009, 09:12
Re: [HELP REQUEST] Filterscript Commands Not Working - by Gimax - 07.07.2009, 09:17
Re: [HELP REQUEST] Filterscript Commands Not Working - by happyface - 07.07.2009, 09:19
Re: [HELP REQUEST] Filterscript Commands Not Working - by Gimax - 07.07.2009, 09:21
Re: [HELP REQUEST] Filterscript Commands Not Working - by Haegon - 07.07.2009, 09:21
Re: [HELP REQUEST] Filterscript Commands Not Working - by Klutty - 07.07.2009, 09:22
Re: [HELP REQUEST] Filterscript Commands Not Working - by Gimax - 07.07.2009, 09:23
Re: [HELP REQUEST] Filterscript Commands Not Working - by Klutty - 07.07.2009, 09:24
Re: [HELP REQUEST] Filterscript Commands Not Working - by happyface - 07.07.2009, 09:25
Re: [HELP REQUEST] Filterscript Commands Not Working - by refshal - 07.07.2009, 09:27
Re: [HELP REQUEST] Filterscript Commands Not Working - by Gimax - 07.07.2009, 09:28
Re: [HELP REQUEST] Filterscript Commands Not Working - by yezizhu - 07.07.2009, 11:03
Re: [HELP REQUEST] Filterscript Commands Not Working - by Gimax - 07.07.2009, 12:07
Re: [SOLVED] Filterscript Commands Not Working - by Gimax - 07.07.2009, 12:58
Re: [SOLVED] Filterscript Commands Not Working - by AmirMooshok - 07.07.2009, 20:52
Re: [SOLVED] Filterscript Commands Not Working - by refshal - 07.07.2009, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)