#1

hey guys i create a new FS but if i enter it to server.cfg and start server the commands from GM and all other FS dont work anymore (i unload my FS and all other commands work)
can someone tell me why?
Reply
#2

Probably some variables from one FS shadows other FS commands
Reply
#3

do you have return 0; in this FS in OnPlayerCommandText at the end of this func?
Reply
#4

thats my onplayercommandtext:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/...", cmdtext, true) == 0)
    {
    ...
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by Schock
thats my onplayercommandtext:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/...", cmdtext, true) == 0)
    {
    ...
    }
   return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmd,"/command",true))
  {
    return 1;
  }
  return 0;
}
Reply
#6

Returning 0 is required for it to pass to the other filterscripts. If you return 1 you basically say "I found the command in this script, stop the search".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)