GameModeExit.
#1

So, I'm might sure there is a bug with returning GameModeExit as a same line.

pawn Код:
if(!strcmp(cmd,"/gmx",true)) return GameModeExit();
Gives you: "SERVER: Unknown command." When you use it.
It happens also when you return it with false.
You should return the GameModeExit in another line then
pawn Код:
if(!strcmp(cmd,"/gmx",true))
{
  GameModeExit();
  return 1;
}
This doesn't give the SERVER:Unknown command.

Reply
#2

Maybe GameModeExit returns 0?
Reply
#3

Probably, doesn't matter if I return it with 1/0 it gives the same unknwon command text.
Reply
#4

Quote:
Originally Posted by MenaceX^
Probably, doesn't matter if I return it with 1/0 it gives the same unknwon command text.
And how does that make it a bug? If you return 0 under OnPlayerCommandText it will display SERVER: Unknown command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)