07.07.2009, 09:04
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
FILTERSCRIPT COMMAND - "SERVER: Unknown command"
I am scripter for too long time and i can't find the freaking problem, rofl...
Any info or suggestions are taken! Thank you!
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; }
Any info or suggestions are taken! Thank you!